Flight is a key adaptive trait. Despite its advantages, flight has been lost in several groups of birds, notably among seabirds, where flightlessness has evolved independently in at least five lineages. One hypothesis for the loss of flight among seabirds is that animals moving between different media face tradeoffs between maximizing function in one medium relative to the other. In particular, biomechanical models of energy costs during flying and diving suggest that a wing designed for optimal diving performance should lead to enormous energy costs when flying in air. Costs of flying and diving have been measured in free-living animals that use their wings to fly or to propel their dives, but not both. Animals that both fly and dive might approach the functional boundary between flight and nonflight. We show that flight costs for thickbilled murres (Uria lomvia), which are wing-propelled divers, and pelagic cormorants (Phalacrocorax pelagicus) (foot-propelled divers), are the highest recorded for vertebrates. Dive costs are high for cormorants and low for murres, but the latter are still higher than for flightless wing-propelled diving birds (penguins). For murres, flight costs were higher than predicted from biomechanical modeling, and the oxygen consumption rate during dives decreased with depth at a faster rate than estimated biomechanical costs. These results strongly support the hypothesis that function constrains form in diving birds, and that optimizing wing shape and form for wing-propelled diving leads to such high flight costs that flying ceases to be an option in larger wing-propelled diving seabirds, including penguins.light is a key adaptation that has evolved independently on many occasions (1). Despite the apparent advantages of flying, the ability to fly has been secondarily lost in several groups. Because a major advantage of flight is reduced extrinsic mortality (2), one hypothesis for the evolution of flightlessness posits that gains in efficiency in other locomotory modalities, such as diving, offset mortality risks in relatively safe environments. The high energy demands of flight also may be disadvantageous, particularly in habitats with low productivity (3, 4). The restriction of some terrestrial flightless birds to remote, predator-free islands with low productivity supports this hypothesis (3, 4). The reasoning seems less tenable for flightless diving seabirds that often exploit highly productive waters but are vulnerable to predation by seals, whales, and sharks. Moreover, many species of penguin travel long distances between their breeding and feeding grounds on a journey that could be made far more quickly by flying than by walking and swimming (5). An alternative biomechanical hypothesis suggests that flightlessness evolved in these birds because of a tradeoff in the optimization of wing-propelled locomotion in different media. In short, as wings become more efficient for swimming they become less efficient for flying, and vice versa. At some point, adaptations to increase swimming...