Ban Josip Šokčević resigned from his position as Ban in 1867 after Austria accepted an agreement with Hungary, as he was disappointed. A year later, he retired from his position as an officer. During his time as Ban, the construction of the most important railway lines in Croatia began, the foundation of the Croatian Academy of Sciences and Arts was encouraged, the Council of Seven was established, and the Croatian language was introduced in all public institutions. A theater law was passed and, at the request of Ban Šokčević, the territory of Vojvodina was returned to Croatia.