[[quoteright:256:http://static.tvtropes.org/pmwiki/pub/images/code_8475.jpg]]
[[caption-width-right:256: Assuming ViewersAreMorons, 1934-1968]]

'''''The Hays Code''''' (the informal name for The Motion Picture Production Code), adopted in 1930 but not seriously enforced until 1934, was a set of rules governing American filmmaking that shaped – and in many ways stifled – American cinema for over three decades. It also happened to completely overlap UsefulNotes/TheGoldenAgeOfHollywood.

During the later years of the SilentAgeOfHollywood and the UsefulNotes/RiseOfTheTalkies, Hollywood became inundated with public complaints about the perceived lewd content of films. Scandals centering on big stars (most infamously Creator/FattyArbuckle) and the ensuing media frenzy caused large sections of the public to call for ''something'' to be done to rein in Hollywood. As "luck" would have it, the U.S. Supreme Court had ruled in 1917 that film did '''not''' qualify for First Amendment protection[[note]] The ruling in the 1917 case, ''Mutual Film Corporation v. Industrial Commission of Ohio'', said essentially that because film was a purely commercial endeavor, it therefore had no artistic merit, and thus could not count as free speech. [[DoubleStandard Live theatre operated under the same auspices, but DID have 1st Amendment protection. This was conveniently ignored by the Court]][[/note]]. This allowed Congress to begin seriously considering putting into place a national censorship board (which several states already had both before and after the ''Mutual'' Decision).

[[http://en.wikipedia.org/wiki/Pre-Code_Hollywood The Pre-Code Era of Hollywood cinema,]] before censorship was actively enforced, stretched from around 1928-1933. The contrast between the films made before and after censorship shows the impact censorship had on American cinema. Films like the original ''[[{{Film/Scarface1932}} Scarface]]'' by Howard Hawks were far more brazen and upfront about DamnItFeelsGoodToBeAGangster, lacking the DoNotDoThisCoolThing tacked-on correctives seen in films like ''Angels With Dirty Faces''. The landscape was also less politically correct with actors and actresses playing all kinds of roles. Much of the content is surprisingly feminist, with working women being regarded with sympathy and affection. A film like William A. Wellman's ''Heroes for Sale'' (1933) shows a ShellShockedVeteran returning from World War I falling into morphine addiction. Directors like Josef von Sternberg worked with Creator/MarleneDietrich to create provocative explorations of sexuality and power. The film ''Morocco'' (1930) famously features the first lesbian kiss in sound cinema.

Such films, and their relatively progressive content, inevitably [[BerserkButton provoked a conservative response]], ''[[{{Film/Scarface1932}} Scarface]]'' in particular. In order to stop the government from censoring or banning their product, Hollywood decided to censor films themselves instead. The Hays Code was a set of production directives, voluntarily adopted by all the major studios, designed to prove to Congress and the public that Hollywood had cleaned up its act. Will H. Hays, a former Postmaster General, did not ''create'' the Code, but was the first head of the office of its enforcement, so his name became more-or-less permanently attached to it. Among film-makers, Joseph Breen was the main man behind censorship, and the Hays Code was also known as the Breen Code. The Code placed a number of restrictions on all films to be produced, distributed or exhibited by the members of the Motion Picture Producers and Distributors of America (MPPDA), the organization today known as the Motion Picture Association of America (MPAA). These were:
* Crime and immorality may never be portrayed in a positive light. [[CantGetAwayWithNuthin If someone performs an immoral act, they must be punished on screen]].
** The ending of ''Literature/TheBadSeed'' was changed; in the novel and stage play, Christine gives an overdose of sleeping pills to her dangerous sociopathic daughter Rhoda, and Christine shoots herself, but Rhoda survives, with the implication [[TheBadGuyWins she will kill again]]. (Especially now that her mother, the only person aware of her true nature, is gone.) The film version sees Christine survive her suicide attempt, while Rhoda dies in a contrived and implausible KarmicDeath – she goes to the lake to find the penmanship medal for which she killed a boy, and a tree is struck by lightning and falls on her.
** The Hays Office also made the ending of ''Film/TheBigSleep'' more violent and decisive than the one originally planned.
** TheReveal in ''{{Rebecca}}'' also suffered as a result of this. Originally [[spoiler: the cruel and faithless Rebecca is murdered by her husband Maxim]], but in Creator/AlfredHitchcock's 1940 film version [[spoiler:her death is accidental, but is covered up by Maxim because he feels nobody will believe he is innocent of the crime.]]
** In ''Film/ItsAWonderfulLife'', Mr. Potter appears to go free after stealing $8,000 and generally living a life of greed and contempt for his fellow man. Rumor has it that the original screenplay contained an ending where Potter dies of a heart attack while Clarence stands idly by. This, apparently, was a little ''too'' cruel, so they were allowed to leave it out, which is why it's implied that Mr. Potter is a KarmaHoudini. The ''SaturdayNightLive'' parody of this ending (in season 12[[note]]The infamous Christmas episode where William Shatner tells ''Star Trek'' geeks to "Get a life!"[[/note]]) is considered a perfect example of [[WhatCouldHaveBeen what should have been]].
** Even having morally derelict characters DrivenToSuicide was often disallowed, which changed the originally planned ending of ''Film/AngelFace'' and the circumstances of Billy's death in ''Theatre/{{Carousel}}''.
** For this reason, ''TheAdventuresOfIchabodAndMrToad'' portrayed [[TheWindInTheWillows Toad]] as being framed for theft, whereas in the book (and all future adaptations) he actually DOES steal the motorcar.
* "Correct standards of life" (for the times) must be presented, unless the plot called for something else. This had the strange repercussion that some directors avoided taking on films that centered on poverty, since it might conflict with the code.
* The law must be respected and upheld. Occasionally cartoons could get away with breaking the law, such as the WoodyWoodpecker cartoon "The Screwdriver" and Creator/TexAvery's "Thugs With Dirty Mugs" (which was [[BannedInChina banned in Manitoba, Canada]] because the censors there thought the cartoon made light of violent crime).
* Portrayals of nudity, and overt portrayals and references to sexual behavior were banned (even between consenting adults). Even the aftermath of sexual activity -- pregnancy and the resulting childbirth -- wasn't allowed. It was the reason why, in ''GoneWithTheWind'' when Melanie Hamilton Wilkes was giving birth, she and Scarlett and Prissy were ''literally'' shown only as shadows on a wall.
** The ban on anything that could be construed as sexual was what pretty much killed the ''WesternAnimation/BettyBoop'' cartoons. Conversely, the ban made Creator/MaeWest a star, as it made good use of her innuendo-laden humor.
** ''WesternAnimation/RedHotRidingHood'' pushed the limits of what was allowed for fanservice on the silver screen. A lot of the [[SomethingElseAlsoRises sexually-charged wild takes]] had to be removed from prints for general audiences, but were reinstated in copies made for American soldiers fighting overseas during UsefulNotes/WorldWarII.
** The Creator/WalterLantz shorts "Abou Ben Boogie" and "The Greatest Man In Siam" also got away with a surprising amount of fanservice, although this eventually kept them banned from TV airings in later years.
** The word "virgin" was banned for this reason, and it was {{Bowdlerise}}d out of the film versions of ''Theatre/{{Carousel}}'' and ''The Rose Tattoo''. It was mostly because of this word that ''Theatre/TheMoonIsBlue'' ended up being released without Hays Code approval.
* Religion was never to be depicted in a "mocking" manner. In some cases, this had the effect of preventing religion being depicted ''at all'', for fear of being deemed mocking after the fact.
** This was what almost got the CensoredEleven short "Clean Pastures" banned in the time it was released,[[note]] As opposed to now, where it's banned for [[UncleTomFoolery having crude, antiquated black stereotypes]][[/note]] because it showed a burlesque of religion with black people shown as angels and going to Heaven (not to mention glorifying gambling and jazz in the same mention as Heaven, both of which were considered taboo back then).
** This led to characters who had been [[SinisterMinister less than exemplary]] [[NunTooHoly members of the clergy]] getting new careers in secular fields: Three notable examples:
*** Frollo in the 1939 adaptation of ''Film/TheHunchbackOfNotreDame'', who became a judge (predating the Disney version by several decades)
*** Mr. Collins in the 1940 ''Film/PrideAndPrejudice'', who became a librarian.
*** Cardinal Richelieu became Prime Minister Richelieu when played by Creator/VincentPrice in the 1948 adaptation of ''Film/TheThreeMusketeers''.
* Drug use (including alcohol consumption) was banned unless the plot called for it. Under the first code, drug use was only allowed if the story was a cautionary tale against drug abuse or if the druggie gets what he or she deserved for doing it in the first place (it was the reason why ''Reefer Madness'' got to be shown, even if the message that drugs are bad was artificial and tacked-on). Illegal narcotics were strictly prohibited, no matter what the circumstances.
* All detailed (that is, [[DontTryThisAtHome imitable]]) depiction of crime must be removed, such as lockpicking, safe-cracking, or mixing of chemicals to make explosives.
* {{Revenge}} in modern times was not permitted as it might glorify violence (specifically murder). [[LoopholeAbuse Historical settings might allow it]] -- particularly where there was no law to punish the offender. This means that Westerns were the only movies allowed to have revenge as a theme or premise.
* Topics [[ValuesDissonance considered perverse]] were not to be discussed, including homosexuality, miscegenation (interracial relationships), bestiality, and venereal diseases. The explicitly racist ban on depicting "miscegenation" was used to justify the exclusion of non-white actors from employment, on the principle that the code was breached if ''either actor or character'' was of a differing race. Anna May Wong, the leading Chinese-American actress of the time, was rejected as female lead in ''Literature/TheGoodEarth'' because the male lead was white actor Paul Muni. The bestiality ban is also worthy of note, as it was part of the reason for changes to ''RedHotRidingHood'''s original ending [[note]]which showed the Wolf forced into marriage by [[DirtyOldWoman the Grandma]], then years later, taking his half-human, half-lupine children to the nightclub to see Red perform[[/note]] (though the original ending, much like the "erection takes", exist on a DirectorsCut that was sent to overseas soldiers).
* The sanctity of marriage was to be upheld.
** It is widely believed that the Code created the ComedyOfRemarriage genre, since it wouldn't count as infidelity if the leads were (temporarily) divorced. However, it existed before.
* Blasphemy, described as using "Oh my God!", "Jesus Christ!", or "Oh, Lord" (and any variants of those) were not allowed. Using the word "God" was allowed, but only if used in a reverent tone or meaning.
* Profanity of any kind was prohibited. Combined with the previous rule, this would lead to supposedly tough and gritty protagonists using mixtures of UnusualEuphemism and GoshDangItToHeck. Any word stronger than "damn" was completely disallowed, and any usage of profanity was likely to result in a hefty fine. (This is why Rhett's famous line in ''Film/GoneWithTheWind'' was considered a big deal back then).
* [[ArsonMurderAndJaywalking And finally]], the United States flag was to be treated with utmost respect. [[DoubleStandard Not that this rule was applied to any other nation's flags.]]

These rules could be slightly skirted in film adaptations; for example, they managed to keep the famous line "Frankly my dear, I don't give a damn" in ''GoneWithTheWind'' because the (mild) swearing was in the original novel (David O. Selznick was still fined $5000 for it, though). This was especially true for faithful adaptations of Creator/WilliamShakespeare's plays, which were probably considered too artistically significant to censor; ''{{Hamlet}}'', for instance, was filmed over a dozen times despite its main theme of revenge, something normally prohibited by the Office.

Since the Code did not apply to the stage, aspiring screenwriters could and did write plays about subjects too sexy or politically controversial for Hollywood. In New York (at least), stage censorship – though not unheard of – was far less of a threat than it had been in the 1920s, and comedies quite freely made fun of the movie censors. See also [[http://kirk.is/2009/09/06/ this pin-up image]] created specifically to see if it would be possible to break every single Code provision in a single still.

The code was in place until 1968, but its purpose – to prevent government-sanctioned censorship of the film industry – was undercut in 1952 with the "Miracle Decision". The Italian film, ''The Miracle'' by Roberto Rossellini had controversial use of religious imagery, and its American release provoked a severe outcry. The victory in court finally gave film in the United States First Amendment protection as an artistic medium, as well as with other US Supreme Court decisions that negated the threat of Federal censorship.

Even in the period of the worst censorship, however, several films and directors managed to [[GettingCrapPastTheRadar subvert censorship]]. The Creator/PrestonSturges comedy ''The Miracle of Morgan's Creek'' is a case in point. A film starring Betty Hutton, a good-time girl who gets impregnated by a GI Soldier [[RefugeInAudacity and gives birth to seven children]]. Creator/MartinScorsese, in his documentary on American movies of the same period, noted that some film-makers used cinematic means and subtlety to suggest complex themes (and even subvert censorship mandates). Naturally, this involved all kinds of subtext, MeaningfulBackgroundEvent, and StylisticSuck in the HappyEnding, which often made them very unconvincing to audiences, who sensed [[DownerEnding the real subtext]] underneath. He cites films like ''Johnny Guitar'', which was a major TakeThat to the WitchHunt and the RedScare, and cites directors like Samuel Fuller and Douglas Sirk who kept pushing the boundaries in terms of content. Fuller's ''The Steel Helmet'', made in 1950, was the first film that addressed the internment of Japanese-Americans in the Second World War, and he made anti-racist films through the decade. His FilmNoir, ''Film/PickupOnSouthStreet'', provoked the ire of J. Edgar Hoover himself, though Fuller had the friendship of 20th Century Fox boss Darryl F. Zanuck, who backed him through all this. Douglas Sirk's ''Imitation of Life'', made in 1959, was the most successful Universal film until ''Airport'', and it portrayed the reality of race relations in pre-Civil Rights era with a stark eye. Elia Kazan, meanwhile, kept pushing the boundaries in dealing with sexuality, with films like ''Baby Doll, A Face in the Crowd'', and ''Splendor in the Grass''.

Indeed, the mere fact that censorship had to be so rigorously enforced in the first place is a testament to the levels and frequency with which directors and screenwriters tried to resist it. Even a classic like ''RebelWithoutACause'' featured a barely concealed homosexual as a sympathetic character (while BuryYourGays is enforced, it's clearly treated as a tragedy). Genre films tended to fall BeneathSuspicion; as such, directors of FilmNoir or TheWestern tended to have a freer hand than, say, people who made OscarBait or the EpicMovie or TheMusical. Also, the BMovie tended not to be taken seriously by MoralGuardians, and films like ''The Big Combo, Detour, TouchOfEvil, Murder by Contract,'' and ''The Crimson Kimono'' tend to have more progressive and interesting content than the A-movies that they played with on a Double bill.

Furthermore, the ability of the MPAA to enforce the Code over all films shown in the US had essentially been neutered in 1948 with the US Supreme Court's "Paramount Decision" (read more about that in UsefulNotes/FallOfTheStudioSystem). Among many other things, this decision ended the ability of the major studios to practice "vertical integration": the ownership of movie production, distribution, and exhibition. All the majors chose to sell their theater chains, which meant they technically lost all say into what could be shown in those theaters. In the 1960s, a wave of European (particularly British and Italian films like ''Film/{{Alfie}}'' and ''Film/BicycleThieves'') films that were not subject to the Code started tackling gritty topics which American studios couldn't touch because of the Code. These films were able to be shown in American theaters without the MPAA's prior approval and when they tried to demand those films be censored, the effort often backfired and the Code ended up looking ridiculous.

There were also serious domestic challenges to the Code in the 1960s. ''Film/ThePawnbroker'' featured an artistically-essential topless scene and ''Theatre/WhosAfraidOfVirginiaWoolf'' featured equally-essential harsh language. Against the considerable critical acclaim of these films and overwhelming public sentiment, the Hays Code tried to bend – with those films being made "special exceptions" -- but this "bending" opened the door for every daring filmmaker of the day to petition their own films for similar consideration. Furthermore, this change of criteria encouraged the film company executives to gradually lose their enthusiasm to cooperate with the Code themselves: it was one thing for the Code to object to specific content with an agreed-upon criteria, but it was quite another for those censors to be de facto film critics to arbitrarily determine whether their films were of good enough quality to allow them to be exceptions.

In 1966, MGM outright defied the Code and released the film ''{{Blowup}}'' (which failed to gain Hays approval due its relatively explicit erotic content). Because the MPAA and the Code could do ''nothing'' to stop MGM from distributing the critically-hailed film (which became a smash hit), and because it had been so long since the Code had been put in place (resulting in a difference in public opinion), other studios soon followed MGM's lead. Also in 1966, Jack Valenti was elected MPAA president with the specific promise to move from the Code to a ratings system, in theory based on the age-appropriate-ness of the film. The MPAA Film Rating System (which, while altered slightly over the years, is still in use to this day) to keep the public happy. The fall of the Hays Code marked the disappearance of the last relic of UsefulNotes/TheGoldenAgeOfHollywood, and the beginning of the "New Hollywood" era of the late '60s and [[TheSeventies the '70s]].

It's important to note that the MPAA rating system has itself been criticized by many people – including film critic Creator/RogerEbert, as well as the filmmakers of ''Film/ThisFilmIsNotYetRated'' – for giving films higher ratings for sex, homosexuality, or other controversial topics (and to a certain extent obscenity) than violence. There have also been complaints about the lack of transparency concerning exactly ''why'' certain films get the ratings they do; several films have been rated PG with "nothing offensive" as the whole MPAA description, for example.

Creator/StephenColbert's book ''Literature/IAmAmericaAndSoCanYou'' contains a parody "excerpt" from the Code, including rules such as "Characters may not walk and chew gum at the same time," "If a train is shown entering a tunnel, the tunnel shall not be portrayed as enjoying it," "Characters may not discuss the high suicide rate among dentists in a manner that implies they have it coming," and "For Christ's sake, somebody put a bra on Creator/JeanHarlow". The excerpt also [[NumberOfTheBeast deliberately omits rule #666]], and also #669 for good measure.

Another example of mocking the Hays Code goes all the way back to 1942 in a classic WesternAnimation/LooneyTunes cartoon directed by Bob Clampett, "A Tale of Two Kitties", in which the cats [[Creator/AbbottAndCostello Babitt and Catstello]] plot to devour the ever-prepared Tweety Bird. At one point, Catstello is on a ladder to Tweety's nest and struggling with his fear of heights, while from the ground, Babitt starts pushing his buttons by yelling, "Give me the Bird! Give me the Bird!" – to which Catstello turns to the audience to say, "If the Hays Office would only let me, I'd [[FlippingTheBird give 'im the Boid all right]]". The really fun thing here is that animated shorts like this showed many different examples of breaking the Code – such as excessive violence ([[BloodlessCarnage though completely bloodless, of course]]), and (what was then) harsh language – simply because they were animated in ways that took everything to a level of pure parody; rules were subverted, but in as overt as way as possible. (A non-animation example of this sort of Hays Code subversion would be Film/TheThreeStooges shorts, which were able to be the first to satirize AdolfHitler in Hollywood.)

The full text of the code can be found [[http://www.artsreformation.com/a001/hays-code.html here]]. The Broadway musical ''A Day in Hollywood/A Night In The Ukraine'' takes the text of Production Code and has the cast ''dance to it''.

While many have criticized the code, critic Michael Medved makes a reasonable point: "While many of the specific rules in the old Production Code look thoroughly ludicrous by today’s standards, it is instructive to recall that Creator/AlfredHitchcock and Creator/HowardHawks, Creator/JohnFord and Creator/BillyWilder, Creator/GeorgeCukor and Creator/FrankCapra and Creator/OrsonWelles all somehow managed to create their masterpieces under its auspices." However, several films by these directors were made, critics argued, in spite of the Code with ExecutiveMeddling responsible for flaws even in the greatest films of this time and which directors constantly had to fight against and struggle to even get the films in the shape that it exists today. Medved also makes the point that after the demise of the Code, motion picture attendance ''fell'' – from ~44 million per week in 1965 to ~19 million per week in 1969 – and that attendance has never reached the levels of the post-TV, pre-ratings age since, not even ignoring population growth[[note]]Some historians have tried to blame this disastrous decline on television, cable, or home video. However, broadcast television had been responsible for the previous disastrous drop, from ~90 million tickets sold per week to ~45 million between 1948-53, and attendance had leveled off for the previous decade. And neither cable nor home video would enter American homes until the late 70s.][[/note]].

Compare UsefulNotes/TheComicsCode, which enforced similar restrictions on the ComicBook medium.
----