In response, Croatian leaders called for a distinct Triune Kingdom. Ban Josip Jelačić, who would go on to be a revered Croatian hero, sought to free Croatia from Hungary as a separate entity under the Habsburgs. Eventually, he traveled to Vienna to take oaths to become counsel of Austrian Emperor. Soon after Lajos Kossuth declared an independent Kingdom of Hungary dethroning the Habsburgs, the Croats rebelled against the Hungarians and declared their loyalty to Austria. The first fighting in the Hungarian revolution was between the Croats and Magyars, and Austria's intervention on the part of their loyal Croatian subjects caused an upheaval in Vienna. Josip sent his army under the order of him, hoping to suppress the increasing power of Hungarian revolutionaries, but failed and was repelled by the Hungarians in September 29 near Pákozd.