Unlike his contemporary Garibaldi Mazzini never compromised his republican ideals and refused to swear an oath of allegiance to the House of Savoy until after the capture of Rome .
His contemporary Garibaldi was also a republican .
Unlike his contemporary Garibaldi , who was also a republican , Mazzini never compromised his republican ideals and refused to swear an oath of allegiance to the House of Savoy until after the capture of Rome .