Here we show that upon infection by M. nematophilum pathogen C. elegans alters locomotion behavior: we observe an increase in both ACh release and locomotion in response to infection that requires the Gαq-Rho GEF Trio-Rho signaling pathway in the cholinergic motorneurons and that this signaling is required for aversive behavior. Here, RHO is linked to infection.