The Motion Picture Production Code was the set of industry moral guidelines that was applied to most United States motion pictures released by major studios from 1930 to 1968. It is also popularly known as the Hays Code, after Will H. Hays, who was the president of the Motion Picture Producers and Distributors of America (MPPDA) from 1922 to 1945. Under Hays' leadership, the MPPDA, later known as the Motion Picture Association of America (MPAA), adopted the Production Code in 1930 and began strictly enforcing it in 1934. The Production Code spelled out what was acceptable and what was unacceptable content for motion pictures produced for a public audience in the United States.
From 1934 to 1954, the code was closely identified with Joseph Breen, the administrator appointed by Hays to enforce the code in Hollywood. The film industry followed the guidelines set by the code well into the late 1950s, but during this time the code began to weaken due to the combined impact of television, influence from foreign films, bold directors (such as Otto Preminger) pushing the envelope, and intervention from the courts, including the Supreme Court. In 1968, after several years of minimal enforcement, the Production Code was replaced by the MPAA film rating system.
In 1922, after several risqué films and a series of off-screen scandals involving Hollywood stars, the studios enlisted Presbyterian elder Will H. Hays to rehabilitate Hollywood's image. Hollywood in the 1920s was badgered by a number of widespread scandals, such as the murder of William Desmond Taylor and alleged rape of Virginia Rappe by popular movie star Roscoe "Fatty" Arbuckle, which brought widespread condemnation from religious, civic, and political organizations. Many felt the movie industry had always been morally questionable. Political pressure was increasing, with legislators in 37 states introducing almost one hundred movie censorship bills in 1921. Hays was paid the then-lavish sum of $100,000 a year ($1.4 million, adjusted for inflation). Hays, Postmaster General under Warren G. Harding and former head of the Republican National Committee, served for 25 years as president of the Motion Picture Producers and Distributors of America (MPPDA), where he "defended the industry from attacks, recited soothing nostrums, and negotiated treaties to cease hostilities".