From "America is a Republic, not a Democracy"
A republic, by contrast is a federal government, ultimately controlled by the people, with five salient features:
5. The majority does not necessarily rule. For example, America elects her president by republican, not democratic, principles. That is why a person can win the presidency but lose the popular vote.