The president won re-election in a hotly-contested race that came down to a few key states.

An MSN Report

WASHINGTON —President Barack Obama is projected to win a second term, MSN News reports.

Obama jumped to the front of the race with a major win in the battleground state of Ohio, securing 18 electoral votes.

The incumbent president is now projected to hold enough Electoral College votes to win the White House.

Here’s how it shaped up for the candidates.

Barack Obama won:Oregon, Colorado, Iowa, New Mexico, California, Hawaii, Washington, Minnesota, New Hampshire, Pennsylvania (Romney had made a last-ditch effort to secure a win in Pennsylvania in the final days of the campaign), New Jersey, New York, Michigan, Vermont, Delaware, District of Columbia, Maine, Maryland, Massachusetts, Connecticut, Rhode Island, and Illinois .

Mitt Romney won:Missouri, Idaho, North Carolina, Arizona, Utah, Arkansas, Mississippi, Louisiana, North Dakota, South Dakota, Texas, Wyoming, Kansas, Nebraska (four of the five electoral votes), Kentucky, West Virginia, South Carolina, Indiana, Oklahoma, Tennessee and Georgia.

Obama rolled up victory margins in the reliably Democratic Northeast and at home in Illinois. Romney secured his conservative base in an election season shadowed by a weak economy and high unemployment.