The Great Compromise was an agreement made among the delegates to the Constitutional Convention that the American government would have two houses in Congress: the Senate where each state has two Senators, and the House of Representatives where each state has a number of Representatives based on population.
According to the Great Compromise, there would be two national legislatures in a bicameral Congress. Members of the House of Representatives would be allocated according to each state's population and elected by the people.