Philadelphia, July 1787. The Constitutional Convention had been meeting for six weeks in a locked room with the windows shut against eavesdroppers, and it was close to falling apart. The sticking point wasn’t slavery yet, and it wasn’t the presidency. It was a question that sounds almost administrative now: how many votes should each state get in the new Congress?

Virginia had a plan already on the table. James Madison and Edmund Randolph proposed a legislature apportioned by population — the more people a state had, the more votes it got. Virginia was the largest state in the country at the time, so this was, not coincidentally, extremely good for Virginia. Pennsylvania and Massachusetts, also large, liked it fine.

New Jersey didn’t. William Paterson countered with a plan built around equal representation — one state, one vote, the same arrangement the states already had under the Articles of Confederation. Delaware, Connecticut, and the other small states rallied behind it. Their fear was concrete, not abstract: under the Virginia Plan, three or four large states could outvote the rest of the country combined on anything they agreed on.

Neither side was arguing in bad faith. Both were describing a real problem. A legislature by population risked making small states irrelevant. A legislature by state risked letting a minority of the population govern the majority. By the end of June, delegates were threatening to walk out. Luther Martin of Maryland spoke for over three hours against the population plan. Gunning Bedford of Delaware warned that the small states might look for foreign allies before submitting to be swallowed by the large ones — a real threat, made out loud, in a room full of men trying to build one country.

The convention appointed a committee to find a way through, one delegate per state, and put Connecticut’s Roger Sherman and Oliver Ellsworth on it. What came back wasn’t a brilliant new idea so much as a blunt trade: give the large states what they wanted in one chamber, and give the small states what they wanted in the other. The House of Representatives would be apportioned by population. The Senate would give every state, regardless of size, exactly two votes.

It passed by a single vote, five states to four, with Massachusetts’s delegation split and therefore not voting at all. That’s how close the whole arrangement came to failing. If one more state’s delegates had walked out of the room that day, the House and Senate as they exist right now might never have existed at all — and there’s no guarantee whatever replaced them would have held the country together through the next two and a half centuries.

The compromise didn’t make either side happy. Large-state delegates still felt shorted in the Senate. Small-state delegates still worried about the House. But it let the convention keep moving, and the design has outlasted every one of the men who argued over it. Wyoming, with a population smaller than many single U.S. cities, gets the same two senators as California, with roughly 68 times as many people. That’s not an accident or an oversight. It’s the exact deal Sherman and Ellsworth’s committee cut in a stuffy room in the summer of 1787, still in force on every vote the Senate takes today.

The tension the framers argued over that summer hasn’t gone away — it just moved into the ordinary business of the Senate. Every time a bill favored by a majority of Americans stalls because it can’t get enough support from senators representing a much smaller share of the population, that’s the Great Compromise doing exactly what it was built to do. Whether that’s the system working as intended or the system showing its age depends on which side of 1787’s argument you’d have been standing on — and Americans still don’t agree on the answer.