By the end of the revolutionary war the new government was formed as a confederation of independent states which were loosely linked to one another.
While initially seen as a strength, things eventually became difficult to manage as many states started to print their own money, make their own international trade pacts and were even building their own independent military.
This was seen as a threat to a new nation and constitutional convention was conducted in Philadelphia. 12 out of the 13 States participated in this convention with the aim of providing some kind of a homogeneity to the new country.
By the end of the convention, the constitution gave way to 3 different branches of government which still form the core of the United States: