First Minister Vaughan Gething has lost a vote of no confidence in his leadership in the Welsh Parliament.
After a tense and passionate debate in the chamber, 29 Senedd members voted in favour of the resolution, while 27 voted against.
Opposition parties immediately called on Mr Gething to resign, which he is not obliged to do as the result is not binding.
But the vote places him under additional pressure after weeks of criticism.
The Senedd vote was called by the Conservatives over donations made to Mr Gething’s leadership campaign by a company owned by a man previously convicted of environmental offences.
There are 60 members of the Welsh Parliament – Labour holds exactly half of the seats with 30 members, while there are 16 Tories, 13 Plaid Cymru members and a solitary Liberal Democrat.
It was later confirmed that the two absences among the government’s Labour members were former social partnership minister Hannah Blythyn and ex-transport minister Lee Waters.
After the vote, Welsh Conservative Senedd group leader Andrew RT Davies said Mr Gething “has lost the confidence of the people of Wales”.
“He has lost the confidence of the Senedd,” he said. “The only person who is still batting for Vaughan Gething is Keir Starmer.”
Plaid Cymru leader Rhun ap Iorwerth said the Senedd had “spoken on behalf of the people of Wales – we have no confidence in the Labour first minister”.
“His government is clearly in disarray and as such is unable to face the significant challenges ahead for Wales.”
Jane Dodds, Welsh Liberal Democrat leader and the party’s only politician in the Senedd, said: “Any attempts of holding onto power would go against the established norms of our parliamentary democracy.”
Mr Gething replaced Mark Drakeford as Wales’ first minister in March, defeating Jeremy Miles in a Welsh Labour leadership contest.
Since then, he has faced criticism – including from those in his own party – over the donations, while also being questioned over Covid-era text messages and the sacking of a minister for allegedly leaking information to the media, which she denies.
The result will also be uncomfortable for the UK Labour Party in Westminster, less than a month ahead of a general election.
In the debate leading up to the vote, Mr Gething said he regretted a motion “designed to question my integrity”.
“Like so many of you in this chamber, I have dedicated my adult life to public services and to Wales,” he said.
“Even in the midst of an election campaign, it does hurt deeply when my intentions are questioned.”
He said he would “not shy away from scrutiny and challenge”.
The first minister said that he and “so many people of colour have been traduced and vilified merely for raising concerns about how some of these debates have been handled”.
“I will continue to put Wales first, first in thought, deed and ambition, as I serve and lead my country,” he added.
Opening the debate, earlier, Mr Davies rejected accusations from some in Labour that the no confidence motion he was bringing was a “gimmick”.
“This is a motion put down in opposition time that might well not be binding, but will send a significant message on the transparency, the honesty and the judgement call of the first minister since he assumed office,” he said.
“That is not a gimmick.”
Mr ap Iorwerth was equally scathing.
“Taken together the first minister’s lack of judgement, and contrition, along with a bunker mentality, when faced with indignation from all sides of the chamber and the Welsh public, I believe do not demonstrate the required skill set for the office of first minister.”
There’s a stench that stretches all the way from a rubbish dump in Pembrokeshire to the office of the First Minister of Wales.