A permanent Royal Navy, with its own staff, dockyards and a group of purpose-built warships, was created in the 16th century in the reign of Henry VIII. Under Elizabeth I, England was at war with Spain. Privately-owned ships combined with the Royal Navy raided Spanish commerce and colonies. In 1588, Philip II of Spain sent the Spanish Armada against England to stop English support for the Dutch rebels, to stop English pirate activity, and to depose Elizabeth. The Spaniards sailed from Lisbon, planning to escort an invasion force from the Spanish Netherlands. The plan failed due to poor planning, English tactics, blocking action by the Dutch, and bad weather.