Migration and accumulation of microglial cells at sites of injury are important for nerve repair. Recent studies on the leech central nervous system (CNS), in which synapse regeneration is successful, have shown that nitric oxide (NO) generated immediately after injury by endothelial nitric oxide synthase (eNOS) stops migrating microglia at the lesion. The present study obtained results indicating that NO may act earlier, on microglia migration, and aimed to determine mechanisms underlying NO's effects. Injury induced cGMP immunoreactivity at the lesion in a pattern similar to that of eNOS activity, immunoreactivity, and microglial cell accumulation, which were all focused there. The soluble guanylate cyclase (sGC) inhibitor methylene blue (MB) at 60 microM abolished cGMP immunoreactivity at lesions and blocked microglial cell migration and accumulation without interfering with axon conduction. Time-lapse video microscopy of microglia in living nerve cords showed MB did not reduce cell movement but reduced directed movement, with significantly more cells moving away from the lesion or reversing direction and fewer cells moving toward the lesion. The results indicate a new role for NO, directing the microglial cell migration as well as stopping it, and show that NO's action may be mediated by cGMP.