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.