Abstract. Externally derived resources often contribute to the structuring of ecological communities.Estuaries are one of the most productive ecosystems in the world and provide an ideal system to test how communities may be shaped by resource subsidies because they occur at the intersection of marine, freshwater and terrestrial habitats. Here we tested the effects of both terrestrial-and salmon-derived subsidies, in addition to other factors such as habitat area, on the diet (inferred from stable isotopes), abundance and size of a mobile estuarine consumer, the Dungeness crab (Metacarcinus magister). Crab trap surveys encompassed 19 watersheds over two seasons in the central coast of British Columbia, Canada, which spanned natural gradients in estuary size, watershed size, riparian tree composition, and Pacific salmon spawning density. Stable isotope ratios of crab tissue confirmed the predictions that estuarine nutrient regimes can be strongly affected by upstream watershed size, salmon density, and the dominance of nitrogen-fixing red alder (Alnus rubra). There were more crabs in larger estuaries and the largest crabs were found in estuaries below the largest watersheds. The proportional contributions of terrestrial-and salmon-derived subsidies to the diet of Dungeness crabs increased with watershed size and salmon density, respectively. These results confirmed that resource subsidies can constitute large proportions of the Dungeness crab's diet, that crab abundance is determined by habitat size, but that crab size is affected by the magnitude of terrestrial resource influx.