The Shawshank Redemption to A Prophet to Cool Hand Luke. The films built around the most-constrained dramatic space in cinema.
Prison films are one of cinema's most-structurally-disciplined categories. The setting's specific constraint — the protagonist physically cannot leave — produces dramatic tension that the film does not need to construct from external plot mechanics. The films that succeed at the form are those that use the constraint productively rather than as background obstacle.
Our picks across the form.
Prison settings give directors three structural advantages that conventional cinematic settings do not. First: physical containment. The protagonist cannot, by definition, leave the location, which forces the film to develop dramatic substance from interior relationships rather than from external plot. Second: time compression and expansion. Prison time is psychologically different from outside time; the form allows films to deploy time-related dramatic effects that conventional contemporary settings do not support. Third: power dynamics. The institutional hierarchy is explicit and visible; the dramatic substance of prison films almost always involves the protagonist's relationship to that hierarchy.
The films that fail in the category typically treat the prison as backdrop for an unrelated plot. The films above mostly succeed because the prison is, in each, the dramatic subject. The Shawshank Redemption's friendship between Andy and Red is the film's actual material; the prison is the structural condition that makes the friendship possible. A Prophet's Malik's progressive transformation from naive young convict to prison-criminal entrepreneur is the dramatic substance; the prison environment is what makes the transformation legible.