In 1848, he was again stationed in Italy where he took part in the Wars of Italian Unification. In September of 1848, he traveled to Dubrovnik where a month later he married Zadar native Pavica de Ponte. In 1849, he was transferred to Zagreb where he was assigned to the military department of the Ban's Court (Government of the Kingdom of Croatia-Slavonia). In 1851, Ban Josip Jelačić appointed him deputy commander of the military department and Ban's adjutant. At the end of 1852, he moved to Cremona, in 1853 to Verona, in September of that same year to Pančevo, and afterward to Kovin, Arad and Transylvania. In 1854, he was assigned to the Supreme Command in Vienna. In 1855, his wife Pavica committed suicide which made him interested in spiritism in his later years. In 1865, he married Emma Regner and was sent to Verona to fight in a war with Italy.