Centrist Armin Laschet has been elected leader of Germany's Christian Democrats (CDU), the party of Chancellor Angela Merkel.
Mr Laschet, premier of North Rhine-Westphalia state, defeated two rivals in the party's virtual conference.
He is now in a good position in the race to succeed Mrs Merkel when she steps down as German chancellor in September, after 16 years in office.
But he faces a changed political landscape following the Covid pandemic.
Mr Laschet, 59, defeated conservative businessman Friedrich Merz in a run-off vote by 521 votes to 466. A third candidate, Norbert Röttgen, was eliminated in the previous round.
He replaces as chair of the party Annegret Kramp-Karrenbauer, who failed to live up to her billing as Mrs Merkel's appointed successor after taking office more than two years ago.
Germany goes to the polls in September, but the CDU leader is not guaranteed to become its candidate for chancellor.
Health Minister Jens Spahn, who has been elected as one of Mr Laschet's deputies, and Markus Söder, leader of the CDU's Bavarian sister party the CSU, could also step into the ring, though neither has yet said that they want the job.
A final decision will be made in the spring.
Mr Laschet is a loyal supporter of Mrs Merkel, and said during the campaign that a change of direction for the party would "send exactly the wrong signal".
In his victory speech, he said: "I want to do everything so that we can stick together through this year... and then make sure that the next chancellor in the federal elections will be from the [CDU/CSU] union."
Pro-immigrant and EU
Armin Laschet is a short, cheerful chap. The popular premier of Germany's most populous state, North Rhine-Westphalia, he throws himself with gusto into traditional carnival celebrations.
He touts himself as a continuity candidate and, for a time at least, was thought to have been Angela Merkel's preferred candidate. He defended her stance during the 2015 refugee crisis and is known for his liberal politics, passion for the EU and ability to connect with immigrant communities.
But his call for an early relaxation of Covid restrictions last spring surprised many and reportedly infuriated Mrs Merkel. He has since retreated from that position but he's had to work to repair the damage to his political credibility.
The big question now is whether the CDU will put him up as their chancellor candidate in September's general election.
German Health Minister Jens Spahn - who supported Mr Laschet in his leadership bid - is thought to harbour ambitions to the chancellory. And recent opinion polls suggest that Bavarian Prime Minister Markus Söder would be a popular choice too.