US President Joe Biden and his predecessor Donald Trump have both passed the delegate thresholds to clinch their parties’ nominations for the election in November.
Four states, one American territory and Democrats living abroad held their primaries on Tuesday.
The result means US voters face a rematch of the 2020 presidential election in eight months.
The nominations will be made official at party conventions this summer.
The 81-year-old president said on Tuesday evening that he was “honoured” voters had backed his re-election bid “in a moment when the threat Trump poses is greater than ever”.
Citing positive economic trends, he asserted the US was “in the middle of a comeback” but faced challenges to its future as a democracy, as well as from those seeking to pass abortion restrictions and cut social programmes.
“I believe that the American people will choose to keep us moving into the future,” Mr Biden said in a statement from his campaign.
Incumbency gave Mr Biden a natural advantage and he faced no serious challengers for the Democratic nomination.
Despite persistent concerns from voters that his age limits his ability to perform the duties of the presidency, the party apparatus rallied around him.
Meanwhile, Mr Trump, 77, remains very popular with the Republican voter base, which has propelled him to victory in primary after primary over well-funded rivals.
His campaign for a second term in the White House has zeroed in on stricter immigration laws, including a pledge to “seal the border” and implement “record-setting” deportations.
Trump has also vowed to fight crime, boost domestic energy production, tax imports, end the war in Ukraine and resume an “America first” approach to global affairs.
Tuesday night’s results do not come as a shock, as both men have dominated their races so far.