After the Spanish victory in San Juan against Great Britain in what is known as the Battle of San Juan of 1797, Governor de Castro became suspicious of all English-speaking European foreigners, mistakenly believing that they supported the anti-Spanish military campaigns of the British and ordered some of the local residents and foreigners, especially those of English and Irish descent, to be placed under surveillance. Many were given eight days to leave the island and those who did not leave were imprisoned.