The Ministry of Justice has said that Gloucester Prison and Shepton Mallet in Somerset is one of six prisons that will close in England under plans to build a so-called super-prison.
Shepton Mallet prison is the oldest working prison in the country.
Some 2,600 offenders are held at the prisons targeted for closure, plus three sites which will be partially shut down.
Prisons at Bullwood Hall, Canterbury, Gloucester, Kingston, Shepton Mallet and Shrewsbury will close, while Chelmsford, Hull and Isle of Wight will see some accommodation reduced.
A feasibility study on what would be Britain's largest prison in London, the North West or North Wales, holding more than 2,000 prisoners, is also to begin, the Ministry of Justice (MoJ) said.
More top news
Becky Watts' uncle speaks exclusively to ITV News following the arrest of two people on suspicion of her alleged kidnap and murder.
The killer serving life for the murder of Jo Yeates has been sentenced to a further 10 months after admitting possessing child abuse images.
Meet the twins from Gloucester who've had to produce their birth certificates to friends in order to prove that they are in fact related.