The phase-out of NSW's hardwood forest industry will begin in 2027 and be completed by July 2030, with a financial package of $310 million slated for workers, businesses and regional communities.
Treasury forecasts annual losses of more than $50 million in the hardwood division of the state-owned Forestry Corporation, or about $1 billion over the next 15 years.
The government pledged $500 million to expand publicly owned timber plantations and timber manufacturing, particularly profitable softwood plantations.
Australian Climate and Biodiversity Foundation chair and former treasury secretary Ken Henry said it was a remarkable decision.
"We haven't seen public policy of this quality for quite a long time," Dr Henry said.
"It's a very good day for the environment."
A goal date of 2030 should be the floor, not a ceiling, Greenpeace Australia's nature policy lead Adele Chasson said.
"We urge the NSW government to bring up the timeline and end native forest logging much more quickly."
Premier Chris Minns said the decision was difficult but the right one for the state.
"I want to make it clear: forestry's got a big future in NSW, and we want to help it grow into the future ... but its future is in softwood residential housing construction, not in the hardwoods," he said.
"It's difficult to justify putting $1 billion into an industry that doesn't have a sustainable future."
The timber workers union vowed to fight the "betrayal".
"When you kill the timber industry, you kill the communities that depend on it ... businesses close, schools lose students, health services come under pressure, sporting clubs struggle to field teams," Timber, Furnishing and Textiles Union NSW secretary Alison Rudman said.
NSW Nationals leader Gurmesh Singh said his party would introduce long-term rolling wood supply contracts for the hardwood timber industry if elected in March.
The news was also an opportunity to address the issue of invasive species and feral animals on public lands, Invasive Species Council chief executive Jack Gough said.
"What we need now is this land to be managed as national parks are being managed, with much greater clarity on what's trying to be achieved, an increase in the funding for that work, and the boots on the ground," Mr Gough told AAP.
A poll by the Australia Institute in 2024 found seven in 10 Australians supported an end to native forest logging on public land.
Victoria's previous Labor government and Western Australia both ended commercial native forest logging on public land in 2024.
The Australian Forest Products Association said the industry contributed about $24 billion annually to the national economy and supported about 80,000 jobs.
It argued restrictions on local production would increase reliance on imported timber products from jurisdictions with weaker environmental standards.