Bolívar decided to rejoin the patriot cause and made his way to Cartagena de Indias, which had established itself as an independent republic on November 11, 1811 (in reaction as much to events in Spain as to attempts by the junta in Bogotá to control it) and joined a few days later in a confederation with four other provinces, the United Provinces of New Granada.