Dezza was born in Melegnano, Lombardy. He was a volunteer in the First Battalion of Italian Students of the provisional Lombard government of 1848, and fought in the First Italian War of Independence against the Austrian Empire which broke out that year.