ORLANDO, Fla. – The Libertarian Party nominated former New Mexico Gov. Gary Johnson and former Massachusetts Gov. William Weld to run for president on Sunday, as the small party attempts to elevate itself into the mainstream during an election that’s given it unprecedented opportunity.

The pair – both two-term governors – have more executive experience than any other candidate in the race and will offer an alternative to two historically unpopular candidates, presumptive Republican nominee Donald Trump and Democratic front-runner Hillary Clinton.

“This is the best message team going forward,” Johnson, the Libertarians’ presidential nominee, told reporters after Weld won the vice presidential nomination.

And it all came to be in a contested convention. After endless speculation that the Republican Party’s divided primary might end in a contested convention in Cleveland and continued theories that the Democrats’ primary could end in Philadelphia with a floor battle between party insiders, 2016 finally had a contested convention – in Orlando.

Johnson won on the second ballot after losing by just a few votes – less than half a percent – on the first.

The interim – a tense hour in between ballots – left candidates scheming, delegates making floor deals and chanting for and against certain candidates. It was the kind of drama political reporters had previously only dreamed about.

“We could go all night – we have gone very late,” party chair Nicholas Sarwark told reporters of multiple ballot voting, which happen routinely with the party’s nominating conventions and are largely ignored by the media. But this year, it’s different: an unpopular and controversial mainstream has given Libertarians an opening.

RELATED: Libertarians see opening in 2016 frustrations

While Johnson locked down enough votes on the second ballot, the drama was far from finished on Sunday. Libertarians also allow their party to choose the vice presidential nominee, and Johnson’s chosen running mate – Weld – is not a party favorite, as many question whether he’s really a Libertarian. It didn’t help that he endorsed Gov. John Kasich for president earlier in the primary cycle.

In speeches ahead of the ballot, the runner-up presidential candidate Austin Petersen spoke out against Weld; another vice presidential candidate, Alicia Dearn, spoke in support of party unity, asking Weld to join her on stage to pledge not to “betray the party.”

Weld lost by a couple dozen votes on the first ballot, but won on the second – by just a few votes – and the crowd erupted in boos and cheers.

After eight straight hours of voting, the Libertarian Party had its nominees and America had finally seen a contested convention.