After Napoleon's definite defeat in 1815, a clandestine Supreme Regenerative Council of Portugal and the Algarve was formed in Lisbon by army officers and freemasons, headed by General Gomes Freire de Andrade—Grand Master of the Grande Oriente Lusitano and former general under Napoleon until his defeat in 1814—with the objective to end British control of the country and to promote "the salvation and independence" of the pátria.