Jo Swinson has become the first female Liberal Democrat leader, after decisively beating Sir Ed Davey in a poll of party members.
She won 47,997 votes, against her opponent’s 28,021.
The 39-year old, who succeeds Sir Vince Cable, said she was “over the moon” to have been elected and was “ready for the fight of our lives”.
She told activists the UK’s future lay in the European Union and she would do “whatever it takes to stop Brexit”.
As well as being the first woman to take charge of the party, Ms Swinson is also its youngest ever leader.
Describing Boris Johnson, the frontrunner in the contest to be the next Conservative leader, as “unfit to be prime minister”, she said her party was ready to return to government.
“I stand before you today not just as leader of the Lib Dems, but as a candidate to be prime minister. There is no limit for my ambition for our party, our movement and our country.
“I am ready to take my party into a general election and win it.”
The BBC’s political correspondent Jessica Parker said Ms Swinson’s victory speech was met with rapturous applause.
Ms Swinson, who has been the party’s deputy leader since 2017, was a business minister in the Lib Dem-Conservative coalition government.
She regained her East Dunbartonshire seat in 2017 after losing it two years earlier.
She told supporters her party, which came second in the recent European elections on the back of its support for another Brexit referendum, had enjoyed a remarkable turnaround over the last two years and it was clear “liberalism is alive and thriving”.
She said the UK’s vote to leave the EU marked a “retreat” from the world and a challenge to the “liberal values” and “fundamental freedoms” her party had historically championed.
“We champion freedom – but Brexit will mean the next generation is less free to live, work and love across Europe.
“We value openness – but Britain is in retreat, pulling up the drawbridge.”
Sir Ed, the Kingston and Surbiton MP who was energy secretary in the coalition government, said his rival would be a “great leader” at a time of huge opportunity for the party.
Ms Swinson appealed to disillusioned Conservative and Labour MPs, saying her “door was always open” to those determined to fight the rise of “nationalism and populism”.
“This is the time for working together. This is not the time for tribalism.”
What is Sir Vince Cable’s legacy?
Expectations were low when Sir Vince became Lib Dem leader in July 2017.
The party was still in the political wilderness after its hammering in the 2015 general election. It hadn’t made the progress it had hoped for in 2017’s snap poll, and Tim Farron had quit suddenly as leader amid uncomfortable questions over his views on faith and homosexuality.
MPs weren’t exactly queuing up to replace Mr Farron – Sir Vince was elected unopposed. He inherited a party that seemed to be going nowhere, fast.
Almost two years later, the picture couldn’t be more different. His successor takes over a party with a real spring in its step and genuine optimism about the future.
So how did the turnaround happen and how much credit should the outgoing leader get for it?