Before the English Act, the publication of obscene material was treated as a common law misdemeanour and effectively prosecuting authors and publishers was difficult even in cases where the material was clearly intended as pornography. Although nineteenth-century legislation eventually outlawed the publication, retail, and trafficking of certain writings and images regarded as pornographic and would order the destruction of shop and warehouse stock meant for sale, the private possession of and viewing of (some forms of) pornography was not made an offence until the twentieth century.