 Depretis enacted controversial legislation for the time, such as abolishing arrest for debt, making elementary education free and compulsory while ending compulsory religious teaching in elementary schools.The first government of Depretis collapsed after his dismissal of his Interior Minister, and ended with his resignation in 1877.The second government of Depretis started in 1881.