 The Shawshank prison, in the book and in the movie, was loosely  based on Thomaston prison, an aging prison located in Thomaston,  Maine. That real life prison closed in 2004 due to its small size  and dilapidated structure.