In fact, Spanish authorities hired pirates to protect Spanish coasts from other competing colonial powers.