In 1860 Indian Penal Code was passed as a general law but laid down offences which any writer, editor or publisher must avoid - the offences of defamation and obscenity. The next important event in the field of media laws was the enactment of the Press and Registration of Books Act (25 of 1867).