A male voter fills out his ballot.

One of the most divisive races for the White House in recent memory is coming to an end as Americans head to the final hours of voting, tasked with choosing between two candidates who have each framed the election as a fight for the nation's character, democracy and security.