Donald Trump unofficially beat Hillary Clinton in Michigan by just 10,704 votes

In this Oct. 19, 2016 file photo, Republican presidential nominee Donald Trump waits behind his podium as Democratic presidential nominee Hillary Clinton makes her way off the stage following the third presidential debate at UNLV in Las Vegas. AP Photo/David Goldman

Republican President-elect Donald Trump defeated Democratic rival Hillary Clinton by 10,704 votes in the state of Michigan, according to certified unofficial county-by-county results released on Wednesday by the Michigan secretary of state.

Trump received 2,279,543 votes compared with Clinton’s 2,268,839, according to figures posted on the secretary of state’s website. Libertarian candidate Gary Johnson received 172,136 votes and Green candidate Jill Stein won 51,463.

READ MORE: Hillary Clinton urged to demand vote recounts over claims polls were rigged

Nine other candidates shared a total of nearly 30,000 additional votes in the presidential campaign in Michigan, the figures showed. The results will remain unofficial until they are reviewed and approved by the Board of State Canvassers on Nov. 28.

Some media organizations did not call a winner of the presidential race in Michigan on election night because of the closeness of the race. Michigan is the last state where the winner was not yet clear.

Story continues below advertisement

WATCH: President-elect Donald Trump urges unity in Thanksgiving Day message

Click to play video 'President-elect Donald Trump urges unity in Thanksgiving Day message' President-elect Donald Trump urges unity in Thanksgiving Day message
President-elect Donald Trump urges unity in Thanksgiving Day message – Nov 23, 2016

The final unofficial tally gave Trump a slightly narrower victory than previous counts. A count as of Nov. 15 reported by CNN, for example, showed Trump winning 2,279,805 votes and Clinton winning 2,268,193, a margin of 11,612 votes.

READ MORE: Here are the campaign promises Donald Trump has backed away from so far

If Trump is declared the winner in Michigan, he will have accumulated 306 electoral votes to Clinton’s 232.

Clinton is leading in the popular vote by more than 2 million, according to the Cook Political Report.