The Government has revealed it will invest $305 million into the upgrade and repair of essential infrastructure at Auckland District Health Board.
Prime Minister Jacinda Ardern said it was "no secret" that hospitals had been underfunded for many years.
"That's left us a legacy of deferred maintenance and ageing infrastructure that we can no longer ignore."
In the 2018 Budget, $750m of new funding was set aside for capital projects.
"Today I'm announcing that $275 million of that will be spent at Auckland City Hospital, Starship Hospital and the Greenlane Clinical Centre," Ardern said.
"Auckland DHB will invest a further $30 million over the next three years."
It was a huge investment that would ensure the DHB could continue to deliver safe, quality care to its 500,000 patients, Ardern said.
The programme of work would include lift upgrades, new fire protection systems, new electrical substations and water storage.
The project would also improve energy efficiency and help reduce operating costs.
Health Minister Dr David Clark said this was much-needed work on the often invisible infrastructure that keeps the DHB's major hospitals running.
"While patients, whānau and staff may not immediately see a lot of difference as a result of this remediation programme, it will mean fewer operational failures, greater efficiency and responsiveness, and improved safety and resilience.
"This work will provide a foundation for the DHB to plan for the future healthcare needs of its communities.
"It is a necessary precursor for any future development of the Auckland City Hospital and Greenlane Clinical Centre sites."
Today's announcement was important for the people of Auckland, he said.
But there's no question that further investment would be needed to deal with a "backlog of building issues nationwide" and a growing population.
"This is a Government that is committed to our public health service and is prepared to invest in its future so that it is there when people need it."
Auckland DHB chair Pat Snedden welcomed the announcement saying it would make a "significant difference" to what was needed on the front line.
He said some of the money would go towards upgrading to earthquakes codes, as a result of some reportage the DHB has received.
"We are taking a timely response to that and fixing stuff that needs to be fixed."
Snedden said the Government was able to invest in Auckland DHB because it has had five years of balanced budgets.
For that reason, Snedden said he was confident the DHB had the ability to afford the $30m investment.
Clark said five years of balanced budgets was "quite an achievement" in an environment of an underfunded health sector.
Ardern said the Government was still continuing to meet the needs of other hospitals like the Dunedin Hospital which had "extraordinary issues" with their infrastructure.
"We are very focused on ensuring we have solid robust infrastructure because we are aware that's where investment is required, which is why we have delivered on it."