The film is based on Thomas Vinterberg's play of the same name, which is inspired by his colourful childhood in an academic commune north of Copenhagen.
Freja's room was a complete copy of Thomas Vinterberg's room in the commune he lived with his parents from the age of seven until he was 19.
Thomas Vinterberg wrote the part of Emma specifically for Helene Reingaard Neumann, his wife in real life. Emma is a mirror version of Anna (played by Trine Dyrholm. Vinterberg and Neumann began a relationship on the set of When a Man Comes Home (2007), when Vinterberg was married to Maria Walbom. Vinterberg told in interview with The Globe and Mail in May 2017 that he had to be fair to the women of this film, he had to be sharing with them and deliver the ugly sides of being a man.
Martha Sofie Wallstrøm Hansen's feature film debut. She got the role after several castings, where around 2,500 girls tried their luck. She was 14 during filming, but she wasn't afraid to shoot nude and sex scenes.
The Commune (2016) was selected to compete for the Golden Bear at the 66th Berlin International Film Festival. At Berlin, Trine Dyrholm won the Silver Bear for Best Actress. It was named as one of three films that could be chosen as the Danish submission for the Best Foreign Language Film at the 89th Academy Awards®, but it was not selected.