When was the last time a president lost the popular vote and yet won the election what was the electoral vote?

The last time it happened was in 2000, when George Walker Bush and Albert Arnold "Al" Gore, Jr. ran for President. Al Gore won the popular vote but had 266 electoral votes. George Walker Bush had 271 electoral votes and won after losing the popular vote.