the construction of the fort through taxes and tithes. Restoration During the Portuguese Restoration (1640), Spanish forces, under the command of field-commander Álvaro de Viveiros, resisted for eleven months (from 27 March 1641 to 4 March 1642). It was only with the multi-island force commanded by Francisco Ornelas da Câmara and João de Bettencourt that the deadlock was broken, and the forces capitulated. Surrendering with military honour, the Spaniards were permitted to retreat with their personal arms and two bronze artillery pieces, along with their munition. They left behind 138 steel and bronze cannons, 392 arquebuses, 400 muskets and their associated munitions. With the recapture of the fort, it was rechristened to the invocation of John the Baptist (), homage to John IV of Portugal; the church was later constructed to honour their patron saint in 1642. In 1658, one of the bastions were repaired (although its unclear which), while in 1662 reconstruction and renovation was completed that were expensive (comparable to almost the same costs associated with the soldiers and officers). In the second half of the 17th century, the gunpowder magazine supported the fortifications in the rest of the island. Within the citadel, single soldiers, married couples (some with families) and retired officers/enlisted lived together. Along the flanks of Monte Brasil the groups maintained plots of land for a subsistence agriculture. At the end the century, the religious Brotherhood to the Cult of the Holy Spirit was one of the richest in the city. At the beginning of the 18th century, Father António Cordeiro, writing of the community Angra and the citadel within the Fortaleza de São João Baptista: "To the east there run many roads, or quarters of homes in rock and lime, of two-stories, and that can house 50 soldiers and ordinarily have 300 neighbours...The city of Angra has six parishes, (which includes the noble population that is in the great Castle, and which has a main chapel..." But, progressively, within the century, some of its spaces were being used for training, which lasted until the 19th century. By 1720 the craftsmen had completed the remodelling work on the church, which was at a time that the fortress had 60 active emplacements. Liberal Wars Following the Porto Liberal Revolution of 1820 that ushered in the Liberal movement, the fort was the site where the first Liberal forces took power, under the command of Captain-general, brigadier Francisco