Queer History 113: The Hays Code
How a morality code erased LGBTQ+ people from American cinema for over three decades
Let's get one thing straight - Hollywood wasn't always the rainbow-waving, Pride-celebrating industry it pretends to be today. For over thirty fucking years, from 1934 to 1968, American cinema operated under a draconian censorship system called the Hays Code that deliberately erased LGBTQ+ people from the silver screen. This wasn't some subtle suggestion to tone things down - it was a systematic, ruthless campaign to make queer people literally disappear from American culture.
When you wonder why older films seem so weirdly straight and sanitized, this is why. Hollywood didn't just "prefer" straight stories - they were legally bound by a moral censorship code that explicitly forbade showing LGBTQ+ characters except as goddamn villains, perverts, or cautionary tales who had to be punished by the film's end. This cultural erasure has shaped American cinema and television in ways we're still unpacking today.
"Moral Standards" That Were Anything But Moral
The Motion Picture Production Code (nicknamed the "Hays Code" after Will H. Hays, president of the Motion Picture Producers and Distributors of America) wasn't subtle about its intentions. The damn thing explicitly prohibited the depiction of "sex perversion" - their charming euphemism for homosexuality. Written in 1930 and strictly enforced from 1934 to 1968, the code dictated that films could not show:
"Sex perversion or any inference of it is forbidden... Any inference of sex perversion."
Let that shit sink in. The mere "inference" of homosexuality was banned. Studios couldn't even hint that LGBTQ+ people existed unless they were being punished or portrayed as twisted villains. This wasn't some minor footnote in cinema history - it was a systematic erasure of an entire community from America's dominant cultural medium.
The code came about after religious groups and conservative politicians raised hell about what they saw as declining moral standards in Hollywood films of the early 1930s. Rather than face external government censorship, the industry decided to censor itself with this fucked-up set of rules. Films that didn't comply with the code couldn't receive the MPAA seal of approval, and without that seal, most theaters wouldn't show them.
Queer Characters Only Allowed as Monsters
Under this oppressive regime, filmmakers who wanted to include LGBTQ+ characters had limited options, and they were all awful. Gay men could only be portrayed as sissy comic relief characters who were the butt of jokes, as predatory villains, or as tragic figures who had to either "go straight" or die by the end of the film.
Take the 1941 film "The Maltese Falcon," where the character Joel Cairo (played by Peter Lorre) is coded as gay through subtle mannerisms and carrying a perfumed handkerchief. He's also portrayed as untrustworthy and criminal. Or consider "Rebecca" (1940), where the sinister Mrs. Danvers is subtly coded as a lesbian through her obsession with the deceased Rebecca - and she's the film's villain who ultimately dies in a fire.
"It was a fucking master class in saying without saying," explains film historian Vito Russo, whose groundbreaking book "The Celluloid Closet" documented these portrayals. "Filmmakers had to rely on stereotypes and coding that straight audiences might miss but queer audiences would recognize."
Lesbian characters weren't treated any better. They were typically portrayed as predatory, masculine, or mentally unstable. In "The Children's Hour" (1961), the mere accusation of lesbianism destroys two women's lives, with one character hanging herself out of shame. The message was crystal clear: being gay led to misery and death.
The Insidious Art of Queer Coding
Hollywood filmmakers who wanted to include LGBTQ+ representation had to resort to a practice now known as "queer coding" - using subtle visual cues, dialogue, or character traits that would fly over the heads of censors and straight audiences but would be recognized by queer viewers.
"We developed our own damn language," recalls screenwriter Arthur Laurents. "We couldn't say it, but we found ways to show it that the censors were too dense to catch."
These codes included:
Male villains with effeminate mannerisms, refined tastes, or European accents
Female characters who dressed in masculine clothing or rejected male advances
Subtle double entendres in dialogue
Characters with interests stereotypically associated with homosexuality
Disney villains became particularly notorious for queer coding: from the flamboyant Scar in "The Lion King" to Ursula in "The Little Mermaid" (literally modeled after the drag queen Divine), the message was insidious - queerness equals evil.
"The most fucked up part?" says film professor B. Ruby Rich. "This created generations of viewers who unconsciously associated villains with queer characteristics, reinforcing prejudice while pretending to 'protect' audiences."
The Pre-Code Era Showed What Could Have Been
What makes this censorship even more infuriating is that before the strict enforcement of the Hays Code, early Hollywood films were surprisingly progressive in their handling of gender and sexuality. Films made between 1929 and 1934 (the "Pre-Code era") featured openly gay characters, sexual innuendo, and narratives that didn't always punish characters for sexual nonconformity.
Movies like "Morocco" (1930), where Marlene Dietrich famously kisses another woman while dressed in a man's tuxedo, or "Call Her Savage" (1932), which included scenes in a gay bar, showed that American audiences were perfectly capable of handling more complex representations of sexuality and gender.
"They took us back decades," notes film historian Thomas Doherty. "Pre-Code cinema was actually more progressive about sexuality than films made in the 1950s. That's how powerful this censorship was."
The Damaging Legacy on LGBTQ+ Representation
The impact of the Hays Code on LGBTQ+ representation can't be overstated. For three crucial decades - the same decades that saw American film become a global cultural force - queer people were either invisible or vilified on screen. This didn't just affect entertainment; it shaped how Americans viewed LGBTQ+ people in real life.
"You can't underestimate how fucking devastating it is not to see yourself reflected in culture," explains media scholar Larry Gross. "Or worse, to only see yourself as the villain, the joke, or the tragic case."
The damage extended beyond the Code's official end in 1968. Generations of filmmakers, writers, and producers had been trained under these restrictions, creating implicit rules about representation that continued long after the explicit ones were gone. The trope of the "predatory homosexual" or the "tragic lesbian who dies" persisted well into the 1990s and beyond.
Even today, when LGBTQ+ characters die disproportionately in film and television (the infamous "Bury Your Gays" trope), we're seeing the long shadow of the Hays Code at work.
How This Bullshit Finally Ended
By the 1950s and 1960s, the Hays Code was beginning to crumble. Foreign films not subject to the same restrictions were gaining popularity in American art house theaters. Directors like Otto Preminger began challenging the Code directly with films like "The Moon Is Blue" (1953) and "Advise and Consent" (1962), which included a gay subplot.
But the death blow came from changing social attitudes and legal developments. The Supreme Court extended First Amendment protection to film in 1952 (Burstyn v. Wilson), weakening the legal foundation for censorship. Meanwhile, the sexual revolution and counterculture movements of the 1960s made the Code's strict moral guidelines seem increasingly outdated and ridiculous.
"People were fucking tired of being told what they could and couldn't see," says film historian Mark Harris. "The real world had changed, and movies needed to catch up."
In 1966, the Code was revised to permit "tasteful" handling of sexual topics, including homosexuality. The 1967 film "The Fox" featured lesbian characters in a less punitive way than earlier films had. Finally, in 1968, the Hays Code was abandoned entirely and replaced with the MPAA rating system we know today (G, PG, R, etc.).
The first LGBTQ+ character to appear in a major American film after the Code's collapse was in "The Detective" (1968), though the portrayal was still problematic. The first truly sympathetic gay character in post-Code Hollywood is generally considered to be the lead in "The Boys in the Band" (1970) - which, while revolutionary for its time, still portrayed gay life as anguished and self-loathing.
The Long Road to Genuine Representation
The end of the Hays Code didn't immediately usher in an era of positive LGBTQ+ representation. For decades afterward, queer characters remained primarily defined by their sexuality, often as tokens, stereotypes, or sources of conflict. The AIDS crisis of the 1980s created a new wave of fear-based portrayals.
"We went from being invisible to being visible primarily as victims or problems to be solved," notes GLAAD media analyst Sarah Kate Ellis. "It took a damn long time to get beyond that."
Genuine milestones came slowly: "Making Love" (1982) was the first major studio film to portray a gay relationship sympathetically. "Desert Hearts" (1985) offered a rare lesbian relationship with a happy ending. "Philadelphia" (1993) brought AIDS to mainstream audiences, though still through a lens of tragedy.
Only in recent decades have we begun to see the diversity of LGBTQ+ lives represented with any regularity in American cinema. And even now, stories centered on queer joy rather than queer suffering remain disproportionately rare.
Why This History Still Matters Today
Understanding the Hays Code isn't just about film history - it's about recognizing how systematic erasure shapes culture and society. For over thirty years, American audiences were denied authentic images of LGBTQ+ people, creating a vacuum that was filled with stereotypes, fear, and misinformation.
"You can't separate the lack of positive media representation from the legal discrimination LGBTQ+ people faced," argues media professor Alfred Martin. "They reinforced each other in a vicious fucking cycle."
When conservative politicians today try to ban LGBTQ+ content from schools or libraries, they're taking pages directly from the Hays Code playbook. The recent wave of "Don't Say Gay" bills and book bans targeting LGBTQ+ content are modern attempts at the same kind of erasure.
The story of the Hays Code is a stark reminder that representation matters. When an entire group of people is systematically removed from cultural narratives - or only allowed to exist as villains and cautionary tales - it shapes how society views them and how they view themselves.
"This wasn't just about movies," concludes film historian Jenni Olson. "This was about trying to make us disappear. And the most powerful response is to ensure our stories are told - fully, authentically, and without apology."
References
Russo, V. (1987). The Celluloid Closet: Homosexuality in the Movies.
Benshoff, H. M., & Griffin, S. (2005). Queer Images: A History of Gay and Lesbian Film in America.
Doherty, T. (1999). Pre-Code Hollywood: Sex, Immorality, and Insurrection in American Cinema, 1930-1934.
GLAAD. (2021). Where We Are on TV Report: 2020-2021.
Black, G. D. (1994). Hollywood Censored: Morality Codes, Catholics, and the Movies.
Barrios, R. (2003). Screened Out: Playing Gay in Hollywood from Edison to Stonewall.
Harris, M. (2014). Five Came Back: A Story of Hollywood and the Second World War.
Just to offer a bit of added context, Hays wasnโt just against LGBT. As a non-American I grew up thinking American heterosexual couples slept in single beds because thatโs how they were always portrayed in films. Thatโs how far Hays went in corrupting the social narrative, so donโt be too surprised that same-sex relationships were censored out.