What is the main purpose of the US Constitution?

The main purpose of the U.S. Constitution is to establish the basic rights of all American citizens and to to establish how the government works.