These secretive, fossorial snakes are found in a variety of arid habitats, including desert riparian, pine-juniper, sagebrush, alkali scrub, Joshua tree and perennial grass. The few records available indicate a preference for invertebrate prey. Millipedes, spiders and other invertebrates are probably taken as well. Friable, organic or sandy soil probably required. The species is often found under loose boards, logs, wood, rocks and fallen shrubs.
Habitat requirements are unknown.
Eggs are probably laid in crevices, rotting logs, or abandoned mammal burrows. More common near water sources. Prefers moist niches in otherwise arid or semi-arid habitats, with debris, and friable soil. Yearlong, probably nocturnal activity. Other black-headed snakes are inactive in winter.