Biologists have paid relatively little attention to subterranean predators, especially their ecology. Although diets of some subterranean lower vertebrates suggest specialisation, there remains a lack of quantitative data. The diet of the caecilian amphibian Gegeneophis ramaswamii was investigated through analyses of gut contents of 67 specimens collected in randomised surveys at three localities in Kerala, southern India, in early and mid-monsoon. Although termites were the most frequently ingested items in the mid-monsoon, the specialist predator hypothesis was rejected because of differences in diet found in early monsoon samples, when earthworms contributed the greatest mass. That guts of some G. ramaswamii contained many individuals of only a single dietary taxon was interpreted as feeding on patchily distributed prey rather than specialisation. No ontogenetic differences in diet were apparent, but more sampling is required to investigate this further. Subadults largely feed on fewer items of the same prey as adults, though there is an indication that subadult diet is less diverse. The data do not support differences between male and female diet. High densities of G. ramaswamii, and perhaps of other terrestrial caecilians and subterranean lower vertebrates feeding on soil-ecosystem engineers (termites, earthworms and ants), might substantially impact soil ecology.