Why was the Us Constitution Written?

The Us constitution was written to provide guidelines and set principles for the country to live by in the future. It was written in the eighteenth century and is still being used.