Hello! The answer to your question would be as followed:
The main reason for creating the Articles of Confederation was to serve as the written document that established the functions of the national government of the U.S after declaring independence from Great Britain.