In nematodes, spermiogenesis is a process of sperm activation in which nonmotile spermatids are transformed into crawling spermatozoa. Sperm motility acquisition during this process is essential for successful fertilization, but the underlying mechanisms remain to be clarified. Herein, we have found that extracellular adenosine-5'-triphosphate (ATP) level regulation by MIG-23, which is a homolog of human ecto-nucleoside triphosphate diphosphohydrolase (E-NTPDase), was required for major sperm protein (MSP) filament dynamics and sperm motility in the nematode Ascaris suum. During sperm activation, a large amount of ATP was produced in mitochondria and was stored in refringent granules (RGs). Some of the produced ATP was released to the extracellular space through innexin channels. MIG-23 was localized in the sperm plasma membrane and contributed to the ecto-ATPase activity of spermatozoa. Blocking MIG-23 activity resulted in a decrease in the ATP hydrolysis activity of spermatozoa and an increase in the depolymerization rate of MSP filaments in pseudopodia, which eventually affected sperm migration. Overall, our data suggest that MIG-23, which contributes to the ecto-ATPase activity of spermatozoa, regulates sperm migration by modulating extracellular ATP levels.