Powered by a solid triumph in California, Hillary Clinton has declared victory in her year-long battle for the heart of the Democratic party, seizing her place in history and setting out on the difficult task of fusing a fractured party to confront Donald Trump.
Mrs Clinton cruised to easy victories in four of the six state contests on Tuesday - including delegate-rich New Jersey. With each win she further solidified Senator Bernie Sanders's defeat and dashed his already slim chances of using the last night of state contests to refuel his flagging bid.
The much-needed winning streak allowed Mrs Clinton to celebrate her long-sought "milestone" - the first woman poised to lead a major political party's presidential ticket. Standing before a flag-waving crowd in Brooklyn, the former secretary of state soaked up the cheers and beamed.
"Barriers can come down. Justice and equality can win," she said. "This campaign is about making sure there are no ceilings, no limits on any of us. This is our moment to come together."
Mrs Clinton had already secured the delegates needed for the nomination before Tuesday's contests, according to an Associated Press tally. Still, Mr Sanders had hoped to use a victory in California to persuade party insiders to switch their allegiances. Mr Sanders picked up wins in Montana and North Dakota. But Mrs Clinton's substantial lead in California made it clear his effort was faltering.
Mr Sanders vowed to continue to his campaign to the very last contest in the District of Columbia on next Tuesday.
"The struggle continues," he said.
Mr Sanders is under intense pressure from top Democrats hoping to coax him gently out of the race, win over his voters and turn to the task of challenging Mr Trump.
Despite the pledge to solider on, there were signs Mr Sanders was listening. In his typically passionate remarks, the socialist firebrand repeatedly noted "we are in this together" and argued that a base tenet of his campaign was that "we will not allow right-wing Republicans to control our government".
Mr Sanders said he called Mrs Clinton to congratulate her on the victories.
The senator is scheduled to return home to Burlington on Wednesday, before coming to Washington on Thursday for meetings and a campaign rally.
President Barack Obama called both Mr Sanders and Mrs Clinton late on Tuesday, congratulating both on their campaigns. The White House said Mr Sanders and Mr Obama would meet on Thursday, at Mr Sanders's request, to discuss "how to build on the extraordinary work he has done to engage millions of Democratic voters, and to build on that enthusiasm".
Mrs Clinton and Mr Sanders are also expected to connect in the coming days, Mrs Clinton's spokesman said late on Tuesday. The candidates' campaign managers spoke earlier in the day, signalling that conversations were under way about the road ahead.
As the Democratic race was wrapping up, Republicans were unravelling anew. Despite handily winning Republican contests in California, New Jersey, New Mexico, South Dakota and Montana, presumptive nominee Mr Trump was in damage control mode over his race-based attacks on a Hispanic judge that had party leaders in fits. After one senator rescinded his endorsement and House Speaker Paul Ryan called the comments "racist", Mr Trump sought to calm worries with a rare, scripted victory speech.
"I understand the responsibility of carrying the mantle and I will never, ever let you down - too much work, too many people, blood, sweat and tears," Mr Trump said, reading from an autocue at a rally at one of his golf courses in suburban New York City. "I will make you proud of your party and our movement, and that's what it is, is a movement."
Mr Trump went on to preview what Mrs Clinton has ahead of her: He blasted the former secretary of state and first lady as the defender of a "rigged" political system. He promised to deliver a longer speech on the Clintons "probably Monday".
"The Clintons have turned the politics of personal enrichment into an art form for themselves. They've made hundreds of millions of dollars selling access, selling favours, selling government contracts, and I mean hundreds of millions of dollars," he said.
In her remarks, Mrs Clinton was similarly hard-edged, saying Mr Trump was "temperamentally unfit to be commander in chief".
"When he says let's make America great again, that's code for let's take America backward," she said.
Mrs Clinton's moment came a day after she secured the necessary 2,383 delegates, according to the AP tally. Her victories on Tuesday added to the count, which includes pledged delegates won in primaries and caucuses, as well as superdelegates - the party officials and officeholders who can back a candidate of their choosing.
Mr Sanders and some in his army of die-hard supporters expressed frustration about the survey. As he addressed supporters in Los Angeles, the crowd chanted "Media is corrupt".
Both Mrs Clinton and Mr Trump made overtures toward an energised and passionate pool of voters. Mr Trump noted he and Mr Sanders both oppose the president's Pacific Rim trade deal, and he sympathised with frustration for having "been left out in the cold by a rigged system of superdelegates".
Mrs Clinton thanked the senator for driving the debate over economic mobility and income inequality and tried to show she absorbed some of his message. Mostly, she expressed empathy of a candidate who knows the bitter taste of defeat.
"It never feels good to put our heart into a cause or a candidate you believe in and come up short," she said. "I know that feeling well. But as we look ahead to the battle that awaits, let's remember all that unites us."
But for Mrs Clinton, the night was largely about marking the moment.
Her campaign produced a video to introduce her speech, chronicling women's rise in politics from the suffragettes through Mrs Clinton's concession to speech to then-Senator Barack Obama, eight years ago on Tuesday when she thanked supporters for helping her put "18 million cracks" in the "highest, hardest glass ceiling".