Donald Trump won Michigan by 13,225 votes with all 83 counties reporting, according to the Michigan Secretary of State website.

The website showed 2,277,586 votes for Trump and 2,264,361 for Hillary Clinton

.

That's 47.6 percent for Trump and 47.33 percent for Clinton, margin of 0.27 percent.

It took until Wednesday morning for the race to be called in Michigan.

Clinton had led the polls in Michigan throughout the campaign, but they narrowed significantly in the closing days and the Michigan Republican Party were predicting a potential win here. Trump and Clinton and their surrogates held multiple rallies in Michigan in recent days.

President Barack Obama won Michigan by 9.5 percentage points in 2012.