Some of these ships were Spanish under José Fernández de Santillán. Gibraltar was not a permanent harbour yet for the English fleet, which was anchored in Lisbon at the time.
The vessels in question were commanded by José Fernández de Santillán, who held Spanish authority. However, the English navy did not have a fixed base at Gibraltar at that time; instead, it was stationed in Lisbon.