During Pedro II's minority the governing regency faced countless rebellions throughout the country. Again breaking with his father and other relatives sympathetic to the rebels, from 1839 to 1845 Caxias commanded loyalist forces suppressing such uprisings as the Balaiada, the Liberal rebellions of 1842 and the Ragamuffin War. In 1851, under his command, the Brazilian army prevailed against the Argentine Confederation in the Platine War; a decade later Caxias, as army marshal (the army's highest rank), led Brazilian forces to victory in the Paraguayan War. As a reward he was raised to the titled nobility, becoming successively a baron, count, and marquis, finally becoming the only person created duke during Pedro II's 58-year reign.