In various terrestrial and aquatic ecosystems, predators affect resources indirectly via intermediate prey. Such indirect interactions involve reducing the density of the prey (density-mediated indirect interactions, DMIIs) or changing the behavioral, morphological, or life history traits of the prey (trait-mediated indirect interactions, TMIIs). Although the importance of TMIIs has been highlighted recently, the strengths of both DMIIs and TMIIs under natural conditions have rarely been evaluated, especially in the context of resource community structure. We studied a three-level marine food chain involving the carnivorous snail Thais clavigera, its limpet prey Siphonaria sirius, and the limpet's food sources, the algae Lithoderma sp. and Ulva sp. We measured the strengths of DMIIs and TMIIs and observed how the algal community changes under the pressure of natural predation by T. clavigera on S. sirius. Neither DMIIs nor TMIIs affected the total algal cover or chlorophyll content per unit area. However, both types of indirect interactions caused similar changes in algal composition by increasing the cover of Ulva and decreasing the cover of Lithoderma. This change in the algal community was caused by a reduction in the limpet's preferential consumption of the competitively dominant Ulva over Lithoderma. These results suggest that both DMIIs and TMIIs have similar effects on the changes in resource community structure under natural conditions.