The film was an adaptation from the novel "Una historia madrileña", written by Pedro García Montalvo and originally published in 1988.