Atlantic. They were also responsible for acting as the chief customs official, the chief magistrate charged with resolving disputes, and the overseer of the naval defenses of the Azores. Portuguese succession Before Philip II of Spain had a chance to enforce his claim to the crown of Portugal, in 1580, António, Prior of Crato, an illegitimate scion of the Beja line of the House of Braganza Portuguese Royal Family, proclaimed himself king on 24 July 1580. However, his rule in continental Portugal lasted only twenty days; on 25 August, he was defeated at the Battle of Alcântara by the Spanish Habsburg armies led by Fernando Álvarez de Toledo, Duke of Alba. After Alcântara, he attempted to rule Portugal from the Azores, where he established an opposition government in Angra do Heroísmo that lasted until 1583. Although for a time he was the monarch (minting coin and conferring titles), his government on Terceira was only recognized in the Azores, and from that place of refuge, António conducted a popular resistance movement opposed to the recognition of a foreign king. He was supported by a number of French adventurers under Filippo di Piero Strozzi, a Florentine exile in the service of France, as well as Portuguese patriots, some of whom came to the Azores to assist him directly. Battle of Salga Bay The first military action in the Azores occurred about a year after António's crushing defeat at Alcântara. A Spanish fleet of ten warships, commanded by Pedro Valdez, bombarded Angra on 5 July 1581, then began investigating the coast of the island in search of the best landing places. At dawn on 25 July, the first ships loaded with Spanish troops anchored in Salga Bay, about twelve kilometres east of Angra's harbour in the village of Vila de São Sebastião. A coastwatcher, stationed at the cape called Ponta do Coelho, gave the alarm, but when the first Portuguese forces arrived about one thousand Castilians had already landed and had started to sack the surrounding villages. In this phase of the fighting, according to local accounts of the action, a leading role was played by young and pretty Brianda Pereira who, together with other women, attacked the enemy with farm implements when she saw her house destroyed. By midmorning, the Spaniards were sweeping the coast with their artillery, and the fighting was fierce. About midday, when the outcome of the battle was