Aquatic/semiaquatic habitats are typical for the family; maritime marshes, tidal salt pools, salt & alkaline lakes of arid regions are the habitats where Ephydridae are of particular importance
(1); one California species lives in crude petroleum pools, and a few species of
Hydrellia live in stems, or mine leaves of aquatic plants.