Prison

A prison, or gaol, was a place of confinement, typically for criminals.

After being imprisoned by the Sheriff of Nottingham, the Twelfth Doctor and Robin Hood escaped by knocking out a guard and taking his keys. (TV: Robot of Sherwood)

In 1881, while in Tombstone, Arizona, the First Doctor was imprisoned by Wyatt Earp who believed this would be safer for the Time Lord who was believed to be Doc Holliday by Seth Harper and the Clanton brothers. A mob, egged on by the Clantons, gathered outside the prison demanding that Holliday be released into their custody and threatening to hang Steven Taylor if not. Earp attacked the group and managed to release Steven. The Doctor was released and surreptitiously removed from the prison. (TV: The Gunfighters)

The Master was imprisoned on Fortress Island where he was visited by the Third Doctor. He escaped with the assistance of George Trenchard. (TV: The Sea Devils)

The Fifth Doctor and Nyssa were briefly locked in gaol on Manussa during the 500th anniversary of the banishment of the Mara. (TV: Snakedance) Occasionally, mugshots were taken of convicts to process them for imprisonment. After being caught with a vehicle carrying stolen merchandise which they themselves stole, the Doctor and Sarah Jane Smith were lined up for mugshots. Both of them struck cheesy grins, mocking their frustrating predicament. (TV: Invasion of the Dinosaurs) The Ninth Doctor, having witnessed his companion seemingly killed before being arrested by the security of the Game Station, faced his mugshot with a stoic look. (TV: Bad Wolf)

Romana I was put into a prison cell by Count Grendel of Gracht. There, she tended to her fellow prisoner, Prince Reynart. (TV: The Androids of Tara)

By his eleventh incarnation, the Doctor had been imprisoned in the Tower of London five or six times. (PROSE: Touched by an Angel)

In the 52nd century, River Song was imprisoned in Stormcage, though she frequently escaped. (TV: The Impossible Astronaut)

A pocket universe was utilised as a prison to house Eugene Tacitus after he murdered his own son. (AUDIO: The Holy Terror)