A constitution is a foundational legal document that outlines the principles, structures, and processes of a government. It establishes the framework for governance, the rights of citizens, and the distribution of powers among different branches of government. Constitutions can be written or unwritten and serve to ensure rule of law and protect individual liberties. They are essential for maintaining order and guiding political and legal systems within a state.