Felipe II took credit for a rousing naval victory at Lepanto, teaming with Venetians against the Turks, but less than two decades later Spain was subjected to the humiliating defeat of its  invincible  armada, at the hands of Sir Francis Drake and a small English navy.
Spain remained the dominant naval force for 2 centuries after defeating the Turks.