Answer:
During the Constitutional Convention of 1787, delegates from 12 of the 13 colonies (all except Rhode Island) met in Philadelphia to modify the Articles of Confederation. This convention, finally, ended up creating a new legal text that would organize the nation, the Constitution of the United States.
Within the Constitution, branches of the federal government were created, of which Congress stands out as the legislative body. In this regard, there were two plans for its organization: one that was looking for a bicameral body, whose representatives would be proportionally appointed (the Virginia Plan, which favored the most populous states), and another that was looking for a unicameral legislature with equal representation (the New Jersey Plan), which favored the less populated states).
Finally, the Connecticut Compromise was adopted, by which both plans were adapted to each other, creating a bicameral Congress, with a chamber with proportional representation (the House of Representatives), and a chamber with equal representation (the Senate).