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.