The 1866 rebellion led by Juan Prim and the revolt of the sergeants at San Gil sent a signal to Spanish liberals and republicans that there was serious unrest with the state of affairs in Spain that could be harnessed if it were properly led. Liberals and republican exiles abroad made agreements at Ostend in 1866 and Brussels in 1867. These agreements laid the framework for a major uprising, this time not merely to replace the president of the government with a liberal, but to overthrow Isabella herself, whom Spanish liberals and republicans began to see as the source of Spain's ineffectuality.