The Prison was built in 1849 as a Surrey House of Correction and was intended for those serving short sentences. It was designed by D R Hill of Birmingham to hold 1000 prisoners, and the first male prisoners were admitted in 1851 and the first female prisoners in 1852. In 1877, when prisons were nationalised, it became a short-term prison and in 1878, it took over from Horsemonger Lane as the hanging prison for South London. It came to be used for recidivists and, after the first world war, part was taken over as the Boys' Prison for London, under a separate governor and regime from the main block. Boys were assessed here and, if appropriate, allocated to Borstals.