Nature of a country: The first and foremost purpose of the constitution that you can point out is that it describes the nature of the country. By the term nature of the country what we meant to say is that there are several types of governmental nature on which a county is building upon. There are several that you might know about such as democratic and the others. So, the constitution is that document of the country that states what nature of the country is.
Goals of the nations: Nations have goals and these goals are the point that makes a nation what it aspires. Constitution of the country is a source that captures the goals of the country whether it be growing in the sector of Industries or making the land where every person and group gets some sort of privilege. These goals have pioneer importance in the build-up of a nation and thus are very important.
Control over government: One of the main reasons why the constitution was made in the first place was to point out the borderline of how much power the government has in its grasps. You surely would have known several events of various countries where the people of the nation were not treated as they should be by the government because of several factors. The constitution makes sure that the government does not get more or less power up their sleeve then they deserve and require in order making the nation work in the right direction.
Guarantee rights to Groups and Individuals: Rights and Regulations are two provisions that are given to the people of the nation. Yes, these rights are the only reason why there exists peace and harmony in the state of a nation. These rights cover several aspects of saving people for the curse of racism and nationalism to stopping the bullying that is done to people of other castes and creeds. The constitution gives the right to speak so that every being in a country has a voice and he or she can speak up on any topic which they think they deserve justice.
Build a common purpose: Making the nation with millions and millions of people working on a certain goal or objective is not as simple as it sounds. The constitution makes things easier for all of us by making a common purpose for all mankind. This purpose is what helps us to bind together as one and saves the country from any hassle on civil war breakouts.
Wider settings: The constitution also serves various purposes other than as specific as the other five from the start. It is very rooted documentation that covers too many topics and aspects of a nation like the legal system and the political culture of the country. As for the legal system, the constitution states to what extent their power is and empowers them with every instrument they require to keep the state of stability in a country. The other aspect which is the political culture, The constitution helps to make the efforts of the public and political parties reach out to each other so that they can develop a better understanding among themselves and will result in a far greater communication of wit.
Source:
https://www.airtract.com/article/The-Purpose-Of-The-Constitution-Why-Its-Important#:~:text=%20Purpose%20of%20the%20Constitution%20%201%20Nature,was%20made%20in%20the%20first%20place...%20More%20