A sailing ship can tack against the wind