Washington (CNN) Donald Trump will become the 45th president of the United States, CNN projects, a historic victory for outsiders that represents a stunning repudiation of Washington's political establishment.

The billionaire real estate magnate and former reality star needed an almost perfect run through the swing states -- and he got it, winning Ohio, North Carolina and Florida.

The Republican swept to victory over Hillary Clinton in the ultimate triumph for a campaign that repeatedly shattered the conventions of politics to pull off a remarkable upset. Clinton conceded to Trump in the early hours of Wednesday morning.

Speaking at a victory party in New York, Trump was gracious toward Clinton and called for unity.

"We owe (Clinton) a very major debt of gratitude to her for her service to our country," Trump said. "I say it is time for us to come together as one united people."

He added: "I pledge to every citizen of our land that I will be president for all Americans."

Trump won with 289 electoral votes compared to 218 for Clinton, according to CNN projections.

Trump's supporters embraced his plainspoken style, assault on political correctness and vow to crush what he portrayed in the final days of his campaign as a corrupt, globalized elite -- epitomized by the Clintons -- that he claimed conspired to keep hard-working Americans down.

His winning coalition of largely white, working-class voters suggests a populace desperate for change and disillusioned with an entire generation of political leaders and the economic and political system itself.

Now, Trump faces the task of uniting a nation traumatized by the ugliest campaign in modern history and ripped apart by political divides exacerbated by his own explosive rhetoric -- often along the most tender national fault lines such as race and gender.

Trump is sure to follow his own playbook

Trump will be the first president to enter the White House with no political, diplomatic or military executive experience. His victory will send shockwaves around the world, given his sparse foreign policy knowledge, haziness over nuclear doctrine, vow to curtail Muslim immigration and disdain for US alliances that have been the bedrock of the post-World War II foreign policy.

His promises to renegotiate or dump trade deals such as NAFTA and to brand China a currency manipulator risk triggering immediate economic shocks around the globe.

Global markets already began tumbling late Tuesday.

Trump, 70, will be the oldest president ever sworn in for a first term and will take the helm of a nation left deeply divided by his scorched-earth campaign. His victory was built on fierce anger at the Washington establishment and political elites among his grass-roots voters, many of whom feel they are the victims of a globalized economy that has resulted in the loss of millions of jobs.

His victory ends Clinton's crusade to become the first woman to ever rise to the nation's highest office. It's a humiliating chapter in the long political career of Clinton and her husband, former President Bill Clinton.

Photos: Final days of the 2016 campaign Democratic presidential nominee Hillary Clinton voted in Chappaqua, New York, on Election Day, Tuesday, November 8. Afterward, she and her husband, former U.S. President Bill Clinton, visited with locals outside the voting area. Hide Caption 1 of 81 Photos: Final days of the 2016 campaign Republican presidential nominee Donald Trump casts his vote in New York on Election Day. Hide Caption 2 of 81 Photos: Final days of the 2016 campaign Clinton addresses a midnight rally at North Carolina State University in Raleigh early on November 8. Both Clinton and Trump barnstormed across battleground states in a frenetic, last-minute push for votes. Hide Caption 3 of 81 Photos: Final days of the 2016 campaign Clinton greets Lady Gaga backstage after the campaign event in Raleigh on November 8. The singer urged the crowd to make history and elect the first woman president. Hide Caption 4 of 81 Photos: Final days of the 2016 campaign Clinton held a rally in Philadelphia the night before Election Day. Hide Caption 5 of 81 Photos: Final days of the 2016 campaign Clinton's rally in Philadelphia included appearances from President Barack Obama and first lady Michelle Obama. Hide Caption 6 of 81 Photos: Final days of the 2016 campaign The Clintons share a moment backstage. Hide Caption 7 of 81 Photos: Final days of the 2016 campaign Trump's family -- as well as Trump's running mate, Indiana Gov. Mike Pence -- join the candidate for a rally in Manchester, New Hampshire, on Monday, November 7. Hide Caption 8 of 81 Photos: Final days of the 2016 campaign Trump visited Raleigh on November 7. Hide Caption 9 of 81 Photos: Final days of the 2016 campaign Trump makes an appeal to voters in Scranton, Pennsylvania, on November 7. Hide Caption 10 of 81 Photos: Final days of the 2016 campaign Trump daughter-in-law Lara Trump joins former New York Mayor Rudy Giuliani for the Scranton rally on November 7. Hide Caption 11 of 81 Photos: Final days of the 2016 campaign Clinton takes the stage during a rally at the University of Pittsburgh on November 7. Hide Caption 12 of 81 Photos: Final days of the 2016 campaign Trump's rally in Manchester was one of five stops the candidate made November 7, the last full day of campaigning. Hide Caption 13 of 81 Photos: Final days of the 2016 campaign Clinton's image is reflected in a teleprompter as she greets supporters after a rally in Pittsburgh on November 7. Hide Caption 14 of 81 Photos: Final days of the 2016 campaign Trump checks out a rubber mask of himself during a campaign rally in Sarasota, Florida, on November 7. Hide Caption 15 of 81 Photos: Final days of the 2016 campaign Trump's face is obscured by a teleprompter as he holds his campaign rally in Raleigh on November 7. Hide Caption 16 of 81 Photos: Final days of the 2016 campaign President Obama arrives to speak at a Clinton rally in Ann Arbor, Michigan, on November 7. Hide Caption 17 of 81 Photos: Final days of the 2016 campaign Preparations continue November 7 at the Jacob Javits Convention Center in New York City, where Clinton will hold an election night event. Hide Caption 18 of 81 Photos: Final days of the 2016 campaign Trump speaks at a campaign rally in Minneapolis on Sunday, November 6. Hide Caption 19 of 81 Photos: Final days of the 2016 campaign Trump supporters take photos in Minneapolis on November 6. Hide Caption 20 of 81 Photos: Final days of the 2016 campaign Trump addresses supporters in Minneapolis on November 6. Hide Caption 21 of 81 Photos: Final days of the 2016 campaign Clinton and NBA basketball player LeBron James wave to a crowd in Cleveland on November 6. Hide Caption 22 of 81 Photos: Final days of the 2016 campaign Clinton supporters hold signs in Cleveland on November 6. Hide Caption 23 of 81 Photos: Final days of the 2016 campaign Clinton boards her campaign plane in Cleveland on November 6. Hide Caption 24 of 81 Photos: Final days of the 2016 campaign A crowd lines up for a rally supporting Trump in Sioux City, Iowa, on November 6. Hide Caption 25 of 81 Photos: Final days of the 2016 campaign Clinton shakes hands with supporters during a rainstorm in Miami on Saturday, November 5. Hide Caption 26 of 81 Photos: Final days of the 2016 campaign Clinton supporters wait outside an early voting center in the predominantly Cuban-American neighborhood of West Miami, Florida, on November 5. Hide Caption 27 of 81 Photos: Final days of the 2016 campaign Trump and his wife, Melania, arrive at an airport rally in Wilmington, North Carolina, on November 5. Hide Caption 28 of 81 Photos: Final days of the 2016 campaign People climbed a wall to get a better view of Trump in Wilmington. Hide Caption 29 of 81 Photos: Final days of the 2016 campaign Trump attends a rally in Denver on November 5. Hide Caption 30 of 81 Photos: Final days of the 2016 campaign Singer Katy Perry shows off a coat reading "I'm With Madam President" during a Clinton event in Philadelphia on November 5. Hide Caption 31 of 81 Photos: Final days of the 2016 campaign Police guard a men's room where a protester was being held after he disrupted a Trump rally in Reno, Nevada, on November 5. Hide Caption 32 of 81 Photos: Final days of the 2016 campaign Police officers and Secret Service agents take a man away in handcuffs after the Reno disruption. Hide Caption 33 of 81 Photos: Final days of the 2016 campaign Members of the Secret Service rush Trump off the stage in Reno. Hide Caption 34 of 81 Photos: Final days of the 2016 campaign Children wait for the start of a Clinton rally in Detroit on Friday, November 4. Hide Caption 35 of 81 Photos: Final days of the 2016 campaign Supporters listen to Clinton in Detroit on November 4. Hide Caption 36 of 81 Photos: Final days of the 2016 campaign Clinton speaks at the rally in Detroit on November 4. Hide Caption 37 of 81 Photos: Final days of the 2016 campaign Clinton joins Beyonce and Jay Z on stage during a free concert in Cleveland on November 4. Hide Caption 38 of 81 Photos: Final days of the 2016 campaign Trump rallies supporters in Hershey, Pennsylvania, on November 4. Hide Caption 39 of 81 Photos: Final days of the 2016 campaign Trump campaign manager Kellyanne Conway waits backstage at a rally in Atkinson, New Hampshire, on November 4. Hide Caption 40 of 81 Photos: Final days of the 2016 campaign Ground crews await Trump's arrival for a rally in Wilmington, Ohio, on November 4. Hide Caption 41 of 81 Photos: Final days of the 2016 campaign Clinton, seen in a reflection, applauds as her former primary rival, U.S. Sen. Bernie Sanders, campaigns for her in Raleigh, North Carolina, on Thursday, November 3. Hide Caption 42 of 81 Photos: Final days of the 2016 campaign Trump holds a rally in Selma, North Carolina, on November 3. Hide Caption 43 of 81 Photos: Final days of the 2016 campaign Trump speaks in Jacksonville, Florida, on November 3. Hide Caption 44 of 81 Photos: Final days of the 2016 campaign A young girl attends a Clinton rally in Las Vegas on Wednesday, November 2. Hide Caption 45 of 81 Photos: Final days of the 2016 campaign Trump addresses supporters in Pensacola, Florida, on November 2. Hide Caption 46 of 81 Photos: Final days of the 2016 campaign Trump gestures in Pensacola on November 2. Hide Caption 47 of 81 Photos: Final days of the 2016 campaign People attend a Clinton rally in Phoenix on November 2. Hide Caption 48 of 81 Photos: Final days of the 2016 campaign Clinton smiles as she greets supporters in Phoenix on November 2. Hide Caption 49 of 81 Photos: Final days of the 2016 campaign Clinton waves in Phoenix on November 2. Hide Caption 50 of 81 Photos: Final days of the 2016 campaign Clinton greets customers at a barbershop in North Las Vegas on November 2. Hide Caption 51 of 81 Photos: Final days of the 2016 campaign Trump appears at a rally in Orlando on November 2. Hide Caption 52 of 81 Photos: Final days of the 2016 campaign A banner flies overhead at a Trump rally in Orlando on November 2. Hide Caption 53 of 81 Photos: Final days of the 2016 campaign Clinton, right, and aide Huma Abedin stand aboard Clinton's campaign plane as they head to Cedar Rapids, Iowa, for a campaign rally on Friday, October 28. News broke during the flight that the FBI was reviewing new emails related to Clinton's personal server, bringing an issue they had assumed was behind them back into the campaign. The emails being examined were part of an investigation into former U.S. Rep. Anthony Weiner, Abedin's estranged husband, who is accused of sexting with a girl who was purportedly underage. On November 6, FBI Director James Comey told lawmakers that after reviewing the new emails, the agency stood by its opinion that Clinton should not face criminal charges. Hide Caption 54 of 81 Photos: Final days of the 2016 campaign Clinton addresses the media in Des Moines, Iowa, on October 28. She issued a statement about the latest FBI disclosure. "We are 11 days out from perhaps the most important national election of our lifetimes," she said. "Voting is already underway in our country. So the American people deserve to get the full and complete facts immediately." Hide Caption 55 of 81 Photos: Final days of the 2016 campaign Clinton speaks at her news conference on October 28. Hide Caption 56 of 81 Photos: Final days of the 2016 campaign Trump speaks at a campaign rally in Cedar Rapids on October 28. Hide Caption 57 of 81 Photos: Final days of the 2016 campaign Trump supporters attend a rally in Cedar Rapids on October 28. Hide Caption 58 of 81 Photos: Final days of the 2016 campaign Trump speaks at a campaign rally in Lisbon, Maine, on October 28. Hide Caption 59 of 81 Photos: Final days of the 2016 campaign Clinton speaks in Cedar Rapids on October 28. Hide Caption 60 of 81 Photos: Final days of the 2016 campaign Trump smiles at a rally in Manchester, New Hampshire, on October 28. Hide Caption 61 of 81 Photos: Final days of the 2016 campaign Clinton attends a homecoming pep rally at North Carolina A&T State University on Thursday, October 27. Hide Caption 62 of 81 Photos: Final days of the 2016 campaign First lady Michelle Obama hugs Clinton at a rally in Winston-Salem, North Carolina, on October 27. Hide Caption 63 of 81 Photos: Final days of the 2016 campaign A Clinton supporter takes a selfie at a campaign rally in Winston-Salem on October 27. Hide Caption 64 of 81 Photos: Final days of the 2016 campaign Trump gears up for a campaign rally at an airport in Sanford, Florida, on Tuesday, October 25. Hide Caption 65 of 81 Photos: Final days of the 2016 campaign Trump supporters cheer while waiting for the candidate's arrival in Sanford on October 25. Hide Caption 66 of 81 Photos: Final days of the 2016 campaign Clinton attends a rally in Coconut Creek, Florida, on October 25. Hide Caption 67 of 81 Photos: Final days of the 2016 campaign A shadow of Clinton's campaign plane is seen as the candidate prepares to land in Manchester, New Hampshire, on Monday, October 24. Hide Caption 68 of 81 Photos: Final days of the 2016 campaign Clinton, center, claps for US Sen. Elizabeth Warren at a rally in Manchester on October 24. Hide Caption 69 of 81 Photos: Final days of the 2016 campaign Clinton greets the crowd after the final presidential debate of the 2016 campaign. Hide Caption 70 of 81 Photos: Final days of the 2016 campaign Trump with his family following the debate. Hide Caption 71 of 81 Photos: Final days of the 2016 campaign Clinton and Trump at the end of the debate. Hide Caption 72 of 81 Photos: Final days of the 2016 campaign Clinton and Trump battled on several issues during the debate. Hide Caption 73 of 81 Photos: Final days of the 2016 campaign Trump greets supporters at a rally in Grand Junction, Colorado, on Tuesday, October 18. Hide Caption 74 of 81 Photos: Final days of the 2016 campaign Trump holds a rally in Green Bay, Wisconsin, on Monday, October 17. Hide Caption 75 of 81 Photos: Final days of the 2016 campaign Milwaukee County Sheriff David Clarke rails against the electoral system at the Trump rally in Green Bay. Clarke told the crowd, "It is pitchfork and torches time in America." Hide Caption 76 of 81 Photos: Final days of the 2016 campaign Trump speaks to supporters in Green Bay. Hide Caption 77 of 81 Photos: Final days of the 2016 campaign Clinton waves as she boards her campaign plane in Seattle on Friday, October 14. Hide Caption 78 of 81 Photos: Final days of the 2016 campaign The view from Clinton's campaign plane on October 14. Hide Caption 79 of 81 Photos: Final days of the 2016 campaign Clinton headlines a fundraiser in Seattle on October 14. Hide Caption 80 of 81 Photos: Final days of the 2016 campaign Clinton's campaign staff takes questions from the media on her plane in Seattle on October 14. Hide Caption 81 of 81

Trump's win also deals a painful rebuke to President Barack Obama, whom he pursued for years with his birtherism campaign built on the false premise that Obama was born outside the United States. Now Trump will have the power to eviscerate Obama's political legacy -- including the Affordable Care Act, the latter's proudest domestic achievement.

But there are deeper, more fundamental questions about Trump's presidency that will be key to his capacity to unify a deeply divided country and appeal to Americans who will feel outraged and disgusted by his victory.

He's got the attention of the whole world

Trump's campaign was built on rage, falsehoods and singling out culprits for the ills of modern America, including undocumented migrants, foreign nations such as China and Muslim immigrants.

He mocked a disabled New York Times reporter, vowed to use the power of the presidency to put Clinton in jail and pledged to sue women who accused him of sexual assault.

Trump has promised to build a wall on the southern border and make Mexico pay for it, and to deport undocumented migrants. He has vowed to reintroduce interrogation methods for terror suspects that are more extreme than waterboarding.

So the demeanor that Trump will adopt as president and the manner in which he will behave will be closely watched -- not just in the United States, but among nervous leaders abroad.

One of the many uncertainties about Trump's coming presidency is how his White House will interact with Republicans in Congress — and whether he and GOP leaders will heal their rift from the campaign.

Republicans repelled a Democratic bid to recapture the Senate, giving the GOP control over Capitol Hill and the White House.

That means it would fall to the GOP either to rubber stamp policies likely to mark a break from conservative orthodoxy or to provide a check on the power of Trump, who has shown every sign he will use executive power aggressively.

House Speaker Paul Ryan will face intense pressure from pro-Trump members of his own coalition to cooperate with the new president.

Senate Republicans, meanwhile, are likely to hold Trump's feet to the fire to ensure he lives up to his promise to appoint justices who could ensure a generational conservative majority on the U.S. Supreme Court.

Clinton apparently failed to reassemble the diverse coalition that helped Obama win the presidency in 2008 and 2012.

The events of Clinton's terrible final week on the campaign -- the revival of her email controversy by FBI Chief James Comey and a damaging drip, drip, drip of revelations by WikiLeaks which her campaign says was orchestrated by Russian intelligence -- could have helped consign her to defeat.

There also is the question of Trump's temperament. Clinton repeatedly warned that he was unfit to control the nuclear codes because he could be baited with a tweet.

Obama passionately denounced Trump as intellectually and temperamentally unfit to succeed him in the Oval Office.

But now, he will be forced to greet his successor on the morning of Inauguration Day in January, and look on while he is sworn in as the 45th president of the United States.