Legitimacy is a term used by governments to recognize another regime. A government can obtain legitimacy in several ways. For example, allowing people to participate in government having representatives shows signs of legitimacy. Also, having a codified law that is referred to shows signs of a "higher law" which is another way to obtain legitimacy.