Facilities in a prison are being built so Muslim inmates do not have to face Mecca while sitting on the toilet.
The Home Office said two new toilet blocks are being installed as part of a refurbishment at Brixton jail in south London.
Faith leaders had told prison bosses it was unacceptable for Muslim inmates to face Mecca while using the toilet.
"The refurbishment has been carried out with due consideration for all faiths", a Home Office spokeswoman said.
"Following consultation with faith leaders within the prison, various small adjustments were made to ensure the faith issues of all prisoners are taken into account."
She added: "The money spent did not affect the overall cost of the refurbishment programme."