The Welsh Government has struck a £100 million deal with Welsh Liberal Democrat leader Jane Dodds to pass its spending plans for next year.
Ms Dodds, the party's sole representative in the Senedd, secured extra funding for childcare, councils and transport as well as a ban on greyhound racing in return for her support.
Labour, which holds half the Senedd's 60 seats, needed at least one opposition member to break the deadlock and help get its final £26 billion budget through the Welsh Parliament for 2025-26.
Without a deal, ministers faced losing more than £4 billion in the financial year from April.
Senedd members will vote on the Welsh Government's final budget as well as Welsh rates of income tax and the final settlement for councils on March 4th.
'Positive step'
As part of the agreement, Ms Dodds, who represents Mid and West Wales, is expected to abstain in the crunch vote which would allow the spending plans to pass.
The deal includes £30 million for childcare, £10 million for playgrounds and leisure centres, £10 million for rural investment, £30 million for social care and £5 million for water pollution.
Under the agreement, £15 million will also be spent on a pilot scheme for young people aged 21 and under to pay only £1 for a single bus fare. Funding will also be provided to restore the fifth train service on the Heart of Wales railway line.
Ms Dodds said: "I'm delighted we have secured funds needed to deliver my party's key priorities of improving social care, increasing quality childcare, tackling water pollution, improving roads and public transport and protecting vital council run services."
"I'm really pleased the Welsh Government is taking this step to offer universal free childcare to families with children aged two to four across Wales. This is important to tackle child poverty and to help parents get into work to help with the cost-of-living crisis."
'Positive package''
The Welsh Government also announced a "funding floor" for councils as part of the final local government settlement, which was also published today.
With councils previously set to receive increases ranging from 2.6% to 5.6%, ministers agreed to a 3.8% minimum increase at a cost of about £8 million.
Monmouthshire, Gwynedd, Powys, the Vale of Glamorgan and Flintshire, which fared worst in the provisional settlement, would benefit most from the funding floor.
Announcing the final budget, finance secretary Mark Drakeford said: "This agreement demonstrates what can be achieved when the Welsh Government and Members of the Senedd work together constructively on areas where we have common ground."
"The additional investment will make a real difference to communities across Wales, particularly in rural areas. Taken together with the extra £1.5 billion announced in our draft budget, this is a positive package of additional funding for every part of Wales."
'Woeful outcomes'
Sam Rowlands, the Conservatives' shadow finance secretary, warned: "Labour's budget will not fix Wales. It will not address the people's priorities, with woeful outcomes like excessive waiting lists and low educational standards speaking for themselves."
"Whether it's Plaid or the Lib Dems propping Labour up, it is clear that only the Welsh Conservatives have consistently opposed Labour's damaging spending plans."
Labour and the Lib Dems have worked together in the Senedd before, with Mike German and Jenny Randerson serving as deputy first minister in the early 2000s.
Kirsty Williams also served as education secretary from 2016 until 2021 but Ms Dodds is not expected to enter into a formal coalition as her predecessors did.
In recent years, Plaid Cymru helped the Welsh Government pass its budgets in return for 46 commitments but the party pulled out of the co-operation agreement last May.

Vueling withdraws winter flights to Aicante this winter
Playground in Barry forced to close after fire damages equipment
Campaigners Take Fight for Fairer Pathways in Welsh Women’s Football to Parliament
Vale Councillor Gwyn John Launches His First Novel at Llantwit Major Book Signing
Pink poppy display commences with celebration of life
Former Barry office block converted into new homes for people at risk of homelessness
Welsh Government publishes independent report on Level 4 intervention at Cardiff and Vale UHB
Three CoastSnap stations set to be installed along the Glamorgan Heritage Coast
Daffodil Runner statue installed at Marie Curie Hospice in Penarth
Woman Dies After Incident in Leckwith as Police Investigation Continues
Vale entrepreneur wins national Innovate UK award for sustainable construction technology
Cardiff Airport retains top accessibility rating as regulator reports record demand for assistance
Open Doors event to showcase hidden world of Glamorgan Archives
New details have emerged of a new tree-lined public square that will replace a traffic dominated junction
Dyffryn Gardens’ Edwardian rose garden blooms again after decade-long restoration
Barry’s Own Daniel White to Walk 190 Miles Back to Where His Round Table Story Began
1,300 people attend Flying Start Family Fun Day
Dispersal order put in place to tackle anti-social behaviour
Interim Chief Executive Appointed at Cardiff and Vale University Health Board
Cardiff Theatre Marks 50 Years of Service for Long‑Standing Staff Member