The Motion Picture Production Code, devised by the Motion Picture Association of America.
It was nicknamed the Hays Code for the MPAA’s first director, Will H. Hays, and was adopted in 1930.
The lengthy document, which was written to forestall government censorship of movies, was not dissolved by the MPAA until 1968.