A constitution is a legal document forming the basis upon which a government rules the country. It sets out the principles and rules for the governance of a nation, including the distribution of powers between different branches of government, the rights and responsibilities of citizens, and the processes for making and amending laws. The constitution acts as a framework for the functioning of a country and provides a stable and predictable system of government.