The ensuing Farroupilha Revolution (known locally as "Guerra dos Farrapos") lasted ten years. The rebels stormed Porto Alegre, but were driven out from there in June 1836. From then on, the Empire was able to control most of the coastal region, achieving decisive strategic advantage from this. However, in 1839, the rebels were still able to invade Santa Catarina, where they proclaimed a Juliana Republic, in a federal relationship with Rio Grande do Sul (during the Santa Catarina campaign, Giuseppe Garibaldi joined the rebels for a while before he returned to Europe and eventually became a hero in his native Italy). The Empire soon retook initiative, though, and from them on the rebels fought in the defensive.