Marine gastropods exert a strong influence on the structure of marine ecosystems through their foraging activities, yet little is known about how environmental differences in space and time may affect their feeding behavior. To enhance the knowledge about the trophic ecology of coastal benthic species, we investigated temporal and spatial variations in the diet of the sandy beach gastropod Olivella minuta. We collected individuals of O. minuta seasonally, over 1 year, at two sandy beaches with different morphodynamic characteristics (Araçá Bay, an ultra-dissipative tidal flat, and Barequeçaba Beach, a dissipative beach) and analyzed the stomach contents of specimens of O. minuta. We identified approximately 15,000 food items, which we grouped into 14 categories. Thirteen food categories were found at each area, but significant differences in diet were observed between sites and sampling periods. Individuals from Araçá consumed an overall larger quantity and diversity of food items, which consisted mainly of foraminiferans, polychaetes, and crustaceans.At Barequeçaba, diatoms were the most important item, followed by crustaceans and polychaetes. Temporal variation depended on sites: the number of food items in the stomachs of individuals of O. minuta and dietary composition was roughly constant over time at Araçá, whereas larger variations were observed at Barequeçaba. Although O. minuta has been previously characterized as a carnivore/scavenger, our results show that the diet of this species varies in space and time and comprises a large variety of food resources. The species thus plays a role in the cycling of both vegetal and animal organic matter. This generalist behavior may allow individuals to shift their diet according to habitat alterations and food availability, thereby enhancing the persistence and resilience of O. minuta in different environments or future climate change scenarios. K E Y W O R D S coastal ecosystems, frequency of occurrence, numeric importance, stomach content, trophic ecology S U PP O RTI N G I N FO R M ATI O N Additional supporting information may be found online in the Supporting Information section. How to cite this article: Corte GN, Yokoyama LQ, Checon HH, Turra A. Spatial and temporal variation in the diet of the sandy beach gastropod Olivella minuta. Invertebr Biol.