A rival government is a political group that claims to be the legitimate government of a sovereign state in opposition to another independent government. Such governments tend to be formed in the aftermath of a civil war, revolution, or military coup. They differ from a government in exile as they are based in, and have control over territory within the claimed state.
Read more on Wikipedia