Garibaldi first sailed to the Beylik of Tunis before eventually finding his way to the Empire of Brazil. Once there, he took up the cause of the Riograndense Republic in its attempt to separate from Brazil, joining the rebels known as the Ragamuffins in the Ragamuffin War of 1835.