The film is adapted from a short story by renowned Iranian literary figure Gholamhossein Sa'edi. Sa'edi was a friend of Mehrjui and suggested the idea to him when Mehrjui was looking for a suitable second film, and they collaborated on the script. Through Sa'edi, Mehrjui met the actors Ezzatolah Entezami and Ali Nassirian, who were performing in one of Sa'edi's plays. Mehrjui would work with Entezami and Nassirian throughout his career. The film's score was composed by musician Hormoz Farhat. The film was completed in 1969.