 He was born in Csetnek, and descended from an impoverished noble family originating in Gömör és Kis-Hont County.His father, , was an iron manufacturer and craftsman.Originally, he was destined for a career in law and went to study in Pozsony.