Xylomya is a fly genus in the family Xylomyidae, the "wood soldier flies". There are at least 30 described species in Xylomya.