
Films entering the public domain will soon face a significant shift. In 2030, films governed by the Hays Code will start to enter the public domain. The Hays Code was a set of self-imposed industry censorship guidelines enforced from 1934 to 1968 by the Motion Picture Producers and Distributors of America (MPPDA), under the leadership of Will H. Hays. Designed to regulate morality in Hollywood films, the code dictated strict rules on depictions of crime, sex, and “immoral” behavior, shaping the creative boundaries of American cinema for decades.
In a comment on one of the Internet Archive’s social media posts, Bluesky user josiahwhite suggested an interesting idea: that due to the restrictions of the Hays Code “[t]he public domain will get a lot more boring.” While this idea might at first seem true, upon further examination it actually clouds the clever ways in which filmmakers of the time navigated the restrictive influence of the Hays Code to tell creative and compelling stories.
To illustrate this point, we shall explore three films—It Happened One Night, To Be or Not to Be, and Double Indemnity—each of which engaged with the Hays Code in distinct ways. Through these case studies, we will see that while the Hays Code imposed restrictions, it did not stifle creativity. Instead, filmmakers found ingenious and often subversive ways to work within and around these constraints, producing films that remain influential to this day.
It Happened One Night (1934): A Pre-Code Example

Being a pre-Code film, one might assume that Frank Capra’s It Happened One Night is hugely risqué, pushing the boundaries of obscenity and serving as a final burst of unfettered creative filmmaking. However, the reality is more complex. While the film includes suggestive moments—such as Claudette Colbert’s character, Ellie, showing some leg to attract passing vehicles, or mentions of gangster violence—it also adheres to many traditional moral expectations of its time. Opposite Colbert’s Ellie is Clark Gable’s character, Peter, a down on his luck newspaper man with a hard edge. Peter first meets Ellie when a man on their bus, Shapely, begins hitting on Ellie. Shapely attempts to endear himself to Ellie as “Fun on the Side Shapely,” flaunting his disregard for marriage vows. This denigration of marriage would not play well in the Hays Code, and the film itself seems to take issue with it as well, as Peter gets Shapely to leave by pretending to be Ellie’s husband.
When Peter and Ellie are forced to share a cabin for the night, they construct a makeshift barrier—a sheet dubbed the “Walls of Jericho”—to maintain a sense of modesty. While there was no Code explicitly forbidding an unmarried man and woman from sharing a room at the time, the film nonetheless applies its own restrictions, anticipating the kinds of rules the Hays Code would later enforce. A deeper reading of these moral themes appears as the name, “Walls of Jericho,” references the religious story from the Book of Joshua, incorporating Judeo-Christian values that would later be emphasized under the Hays Code.
The film ultimately concludes with Peter and Ellie getting married, affirming the cultural ideal of heterosexual marriage that the Code would later regulate as a fundamental norm. So what emerges from It Happened One Night is a blend of the unregulated era of Hollywood and the values that would soon be codified under the Hays Code. Despite the interplay of these influences, the film remains a masterwork. It was the first film in Academy Awards history to win all five major categories—Best Picture, Best Director, Best Actor, Best Actress, and Best Screenplay—an achievement that underscores both its artistic brilliance and its lasting appeal.
To Be or Not to Be (1942): A Satirical Challenge to the Code
By the early 1940s, Hollywood was firmly under the Hays Code’s influence and deeply entrenched in World War II. Ernst Lubitsch’s satirical comedy To Be or Not to Be follows a Polish theater troupe whose production of Hamlet is disrupted by the Nazi invasion of Poland in 1939. At its core, the film actively mocks and ridicules the Nazis in direct contradiction to the Hays Code’s provision against making “willful offense to any nation.” Though, given that the target was the Nazis, it appears this rule was conveniently overlooked.
One of the most striking aspects of To Be or Not to Be is its subversion of the Hays Code’s depiction of marriage and fidelity. The film centers on Joseph and Maria Tura, a married couple who lead the Polish theater troupe. Maria, played by Carole Lombard, is heavily implied to be unfaithful to Joseph, played by Jack Benny, which the film often underplays for laughs. Her admirer, a young Polish pilot named Stanislav Sobinski, regularly leaves the audience during Joseph’s delivery of Hamlet’s “To Be or Not to Be” monologue to secretly meet with Maria backstage. Joseph is frustrated that his performance is being disregarded, while not at all aware of the deeper intentions behind the disturbance. Sobinski and Maria’s relationship continues to the point of Sobinski suggesting she divorce her husband to marry him, very much in line with the code. He additionally suggests she retire from acting to become a housewife. However, Maria proves reticence to do either, thus subverting the infidelity in one regard, and pushing back on the normative gender roles that the Hays Code sought to uphold. Sobinski’s relationship with Maria is cut short when he is called to war following the Nazi invasion.
The plot is propelled forward when he returns to Poland and uncovers a Nazi spy masquerading as a Polish professor who plans to root out the Polish resistance. The film plays with its Code subversion through humor, such as a memorable gag in which Joseph returns home to find Sobinski sleeping in his bed, suggesting further infidelity. While nothing improper has actually happened—Sobinski was given refuge after parachuting from his plane into Poland—the physical staging of the scene suggests Maria’s attraction to Sobinski remains unresolved.
In the film, the Nazis take Maria hostage just as Sobinski returns. Throughout the film, she skillfully leverages their desires for her attractiveness by navigating herself and others out of danger, and taking some Nazis down along the way. Ultimately, Joseph and Sobinski reconcile, but the film’s final scene reinforces Maria’s continued infidelity—just as Joseph delivers his monologue again, another young man rises and exits, mirroring Sobinski’s earlier actions.
While the film cannot be as explicit about its themes due to the Hays Code, it remains sharp and subversive. The humor is relentless, the jokes land with precision, and the script is exceptionally tight. Despite the Code’s restrictions, To Be or Not to Be stands as one of Hollywood’s most defining satirical films about the Nazis—proof that even under strict censorship, filmmakers found ways to push boundaries and craft enduring works of comedy and social critique.
Double Indemnity (1944): Adaptation Under the Code

Here we have an interesting example of adaptation and the Hays Code. In 1935, the original story was submitted by author, James M. Cain, to the Hays Code Office for use in a film script. The Office rejected it for “being a blueprint for murder” (Hoopes, 1982, pg. 268, 331). Since printed works were not governed by the standards of the Hays Code, Cain serialized the story in Liberty magazine during 1936. Following its success as a compiled book in 1943, the story eventually underwent adaptation to a motion picture in 1944.
The best known version of the story, the 1944 film, was directed by Billy Wilder, and worked with a Code slightly less sensitive to crime. Yet it still had to adhere to a more restrictive set of rules for the film. The plot remains quite consistent in overall story beats between the mediums. An insurance salesman, Walter, falls in love with a client, Phyllis, and the two commit insurance fraud and murder, killing Phyllis’ husband. Following the murder, the two fall apart and grow distrustful of each other. Seeking to get revenge for putting him through the ordeal, Walter seeks to kill Phyllis by surprise. The two diverge in this encounter.
In the film version, Walter and Phyllis mortally wound each other in a shootout. Phyllis dies during the shooting, but a mortally injured Walter gets away. He returns to his office, and there he recounts the entirety of the plot into a dictaphone before succumbing to his injuries.
The film’s ending places much more emphasis on finality for both characters. While the Code had loosened up on crime films by 1944, it still desired to show the consequences of crime. In its initial 1935 rejection of the story, the Office believed it was depicting “an adulterous relationship” where the criminals “get away with the crime” (Hoopes, 1982, pg. 268, 331). By ensuring the film reinforces the Code’s moral stance against adultery and murder, eliminating the ambiguity present in the book’s ending.
Neither Phyllis nor Walter die in the shootout. Instead, Walter recovers, and escapes on a boat to Mexico. While aboard the boat, Walter runs into Phyllis. After briefly reuniting, the two are implied to be contemplating suicide by jumping into the water right as the book ends.
Even with these adaptational changes, the film is highly entertaining, constantly building suspense through the imagery, editing, and narrative twist. In the end, the restrictions of the Hays Code don’t actively harm the tale, but rather creates a different interpretation of the events.
Conclusion

In looking at It Happened One Night, To Be or Not to Be, and Double Indemnity, we can see how the Hays Code shaped Hollywood, and had creative filmmakers navigate its restrictions in ways that often led to ingenious results. The argument that public domain works will become less exciting as we enter the Hays Code era is not hard to envision, but it overlooks the reality that creative expression persisted and thrived under constraint. Just as filmmakers worked within the boundaries of the Code to create powerful, lasting stories, we should approach the films entering the public domain each year with curiosity, nuance, and appreciation for their historical contexts. As we anticipate Hays Code-era films entering the public domain in 2030, we should also celebrate the wide array of pre-Code films still making their way into the public domain—such as Frankenstein, All Quiet on the Western Front, King Kong, numerous Marx Brothers films, and many more inventive short cartoons. The public domain continues to expand, and with it, our opportunity to rediscover and reinterpret the works of the past.
This post is published under a CC0 Waiver dedicating it to the public domain.