The Hays Code was a set of industry guidelines that governed the production of most United States motion pictures released by major studios from 1930 to 1968. It outlined what was considered morally acceptable and unacceptable content for movies during this time period.