Among other types of publications, the Comstock Act of 1873 classified materials “for the prevention of conception” as obscene and made it illegal to send them through the mail.
The Comstock Act 1873
National Archives, General Records of the U.S. Government