In the case of such a tie when the electoral votes are cast in state capitals on December 7, the Constitution says the newly-elected House of Representatives elects the president, with each state delegation casting one vote, and the Senate elects the vice president.
While it is highly unlikely, with 538 electoral votes available there is the possibility of a 269-269 tie, and specific electoral calculations show it could actually happen.