Leo Varadkar on Wednesday announced that he was stepping down as Ireland's prime minister and leader of the Fine Gael party in the governing coalition, citing "personal and political" reasons.
Pundits called the surprise move, just 10 weeks before Ireland holds European Parliament and local elections, a "political earthquake". A general election also has to be held within a year.
Deputy Prime Minister Micheal Martin, leader of Fianna Fail, the main coalition partner, said Varadkar's announcement was "unexpected" but added that he expected the government to run its full term.
An emotional Varadkar, who is in his second stint as prime minister and at 45 remains one of Europe's youngest leaders, said he felt he was no longer the "best person" to lead the country.
"Politicians are human beings. We have our limitations," he said in a statement on the steps of Government Buildings in Dublin, surrounded by his Fine Gael cabinet colleagues.
"We give it everything until we can't anymore and then we have to move on."
Despite recent poor showings at the ballot box, Varadkar insisted that he believed the government could be re-elected.
But he added: "I believe a new taoiseach (prime minister) will be better placed than me to achieve that -- to renew and strengthen the top team, to refocus our message and policies, and to drive implementation."
"After seven years in office, I am no longer the best person for that job," he said.
"My reasons for stepping down now are personal and political, but mainly political," he said, without elaborating.
Earlier this month, Varadkar was widely blamed for a twin defeat, including the biggest-ever referendum loss by a government, on proposals to reform references to women, the family and care in the Irish constitution.
Varadkar said his centre-right Fine Gael party would have a leadership contest, and that he would remain as premier until the new leader is elected, after parliament returns from recess next month.
Varadkar first became prime minister in June 2017. He was the youngest person to ever hold the office, Ireland's first openly gay prime minister, and the first from an ethnic minority background.
He stepped down as part of a deal with opposition parties after his party's poor performance in the 2020 general election, but took over for a second time in 2022 as part of the same agreement.