Technically he won a plurality of the popular vote, but he didn't win the popular vote. This is typically not a distinction that matters, but in this case it's what happened. The majority of people voted for someone else, but he got votes from more people than any other candidate did.
Of course, what really matters is the electoral college, but the popular vote is often seen as lending even more legitimacy to a victory.