Ingmar Bergman wrote the screenplay for Shame, completing it in spring 1967.
The controversial Vietnam War was being fought at the time, and while Bergman denied the film was a statement on the conflict, he remarked that "Privately, my view of the war in Vietnam is clear.