In 1557 Ungnad, as a captain in the Croatian army, defeated the Turks in Koprivnica.
Before becoming ban he was mayor of Varaždin. He assumed the role of ban in 1578. During his reign he is known to have settled a land dispute in Turopolje. He also lost territory to Ottoman Bosnia and the Croatian border was pushed north from the river Una to the Kupa.