By the Constituent Assembly of the constitution drawing country.An Assembly is held and after many years of discussion about the specific needs of the country and its people the elected members are required to give the consent and give any law or rule which are then discussed in the parliament and then the constitution is drawn up to govern and lay a fundamental ruling system in a state.

I hope this helps

Please mark it as the best if you think