Part of an historic Brighton hospital has been saved from demolition after councillors gave the go-ahead for the site to be redeveloped.
Brighton and Hove City Council have approved new plans which include the preservation of the Royal Alexandra Children's Hospital Victorian building.
An earlier application to demolish all the buildings on the Dyke Road's site was withdrawn.
Developers Taylor Wimpey plan to build 120 homes at the location.
The Victorian hospital, which was constructed in the late 19th Century, will be converted into 20 flats.
All the other structures on the site will be demolished and replaced by another 100 homes.
The city council said it accepted a lower proportion of affordable properties being built in return for preservation of the historic building.
It said Taylor Wimpey also agreed to pay £182,000 for outdoor recreation facilities and about £170,000 for education services in the area.
Councillor Lynda Hyde added: "This is one of those tightropes the planning committee sometimes has to walk.
"Do we insist on more social housing or preserve this fine building which is so loved by residents?
"We feel we have now struck a good balance. And importantly this will ensure the site is put to good use, attracts investment and doesn't lie derelict."
Heloise Brown, from the Victorian Society, said: 'We have campaigned for this handsome and adaptable building over many years and it is wonderful news that it now has a viable future.
"The hospital is an important part of Brighton's heritage and it is right that its distinctive red brick and terracotta façade should be the focus of this new development."