Surface longline gears are used to fish different species, mainly albacore Thunnus alalunga (Bonnaterre, 1788), bluefin tuna Thunnus thynnus (Linnaeus, 1758), and swordfish Xiphias gladius Linnaeus, 1758, and are considered highly dangerous for threatened marine turtles. Loggerheads Caretta caretta (Linnaeus, 1758) can be incidentally captured by surface longlines. A number of captured individuals die during the fishing operation, which we consider direct mortality due to fishing. We analysed the relative loggerhead by-catch and direct mortality associated with each type of boat and gear from April to December during the period 1999-2004 in the Spanish surface longline fleet that fishes in the western Mediterranean Sea, an important fishing area for this fleet. We used different indices to compute the catch per unit effort (CPUE) according to the number of hooks and to the number of fishing operations for each type of boat and gear. Both by-catch and direct mortality differed significantly according to the type of boat and gear. With respect to the number of hooks, boats longer than 12 m not using a roller and targeting bluefin tuna captured the highest number of loggerheads, whereas boats longer than 12 m with a roller that targeted swordfish caused the highest direct mortality. With respect to the number of fishing operations, boats longer than 12 m without a roller that targeted albacore captured the highest number of loggerheads; the highest direct mortality was caused by this type of boat and by boats longer than 12 m using a roller and targeting swordfish.