The Moral Code was written at the 22nd Congress of the CPSU in 1961. It was part of the third CPSU Program, which was a plan for how to make the entire Soviet Union communist as part of the new Party Programme.