Legitimacy refers to the justification and acceptance of an authority or institution's power and right to govern. It is a crucial concept in understanding the historical perspectives on government and the social contract between the rulers and the ruled.