All galley actions were fought at close quarters, where ramming and boarding were possible. But the use of the ram was only available for a vessel driven by oars. While fleets depended on the methods of battle at close quarters, two conditions were imposed on the warship: light structure, so that her crew could row her with effect, and a large crew to work her oars and fight in hand-to-hand combat. Sails were used by virtually all types of galleys, ancient and medieval, in long-range strategic maneuvers, and to relieve the rowers from absolutely exhausting toil. Sails were lowered in action, however, and when the combatant had a secure port at hand, they were left ashore before battle.