He graduated philosophy at the Royal Academy of Science in 1844, and theology at the ViennaPázmáneum in 1848. After being ordained and a short chapel service, he worked as a probationary professor of history and geography at the gymnasium in Zagreb. In the period 1851–1853 he studied history and geography in Vienna and Prague. He received a professorship at the Law Academy in Zagreb in 1854, working as a director of the same institution since 1871.
In the academic year 1874/75 he had the honor to be the first rector of the Royal University of Franz Joseph I in Zagreb. In the opening ceremony, on the October 19th 1874, he held his famous speech in which he warned on the importance of modern university.
In his works he systematically and critically dealt with the period of Croatian history of late Middle Ages in the period of Jagiellon dynasty. A street on Šalata in Zagreb bears his name since 1928.