A Grade-I listed church in central Bristol, on the Buildings at Risk register, has been awarded more than £3m for restoration work.
The money, for St James Priory, has come from the Heritage Lottery Fund.
The church is owned by the Anglican Diocese of Bristol and leased to the St James Priory Project, which runs a drug and alcohol support programme.
The restoration scheme will provide training and volunteering opportunities to residents of the project.
Susan Jotcham, director of the St James Priory Project, said: "It's absolutely amazing news and such a tremendous relief, we have been so worried about the deteriorating condition of the building.
"Not only is St James Priory an important part of the history of Bristol it is also a precious haven for all who come here."