Alert to the dangers of majority rule, the Constitution's framers inserted several anti-majority rules. In order to amend the Constitution, it requires a two-thirds vote of both houses, or two-thirds of state legislatures to propose an amendment, and it requires three-fourths of state legislatures for ratification. Election of the president is not done by a majority popular vote, but by the Electoral College.
Part of the reason for having two houses of Congress is that it places an obstacle to majority rule. Fifty-one senators can block the wishes of 435 representatives and 49 senators. The Constitution gives the president a veto to thwart the power of 535 members of Congress. It takes two-thirds of both houses of Congress to override the president's veto.