The stable fly, Stomoxys calcitrans L. (Diptera: Muscidae), is a significant insect pest with global veterinary implications due to its capacity to both cause nuisance and transmit disease-causing pathogens to livestock. This study aimed to determine the livestock bedding preferred for use as a development substrate by S. calcitrans larvae and field-collected adults. The result showed that S. calcitrans larvae exhibited a preference (26.7%) for 7-day-old cow manure. Gravid females displayed a pronounced preference (55.0%) for fresh cow manure. As there were eight choices, indifference would result in 12.5% for each bedding substrate. Furthermore, the efficacy of four entomopathogenic nematodes (EPNs), namely Heterorhabditis bacteriophora (Poinar), Heterorhabditis indica Poinar, Karunakar & David (Rhabditida: Heterorhabditidae), Steinernema siamkayai Poinar, Karunakar & David and Steinernema carpocapsae (Weiser) (Rhabditida: Steinernematidae), against S. calcitrans larvae and the persistence after application to livestock bedding substrates were evaluated under laboratory conditions. In filter paper bioassays, all four EPNs caused 76.7%-100.0% mortality in the second instar larvae of S. calcitrans when applied at 50 and 100 infective juveniles (IJs)/cm2 within 5 days after exposure. For the third instar larvae of S. calcitrans, only H. indica induced high mortalities of 86.6% when applied at 100 IJs/cm2 within 5 days after exposure, while the other EPNs resulted in mortalities of less than 70%. The data further demonstrated that H. bacteriophora, H. indica and S. siamkayai remained present in the substrates linked to S. calcitrans larvae for as long as 7 days after the application of EPNs. This study demonstrates the potential of EPNs as a biologically based control agent against larvae of S. calcitrans, a serious pest and significant vector for various livestock animals.