During spermiogenesis, haploid round spermatids undergo dramatic cell differentiation and morphogenesis to give rise to mature spermatozoa for fertilization, including nuclear elongation, chromatin remodeling, acrosome formation, and development of flagella. The molecular mechanisms underlining these fundamental processes remain poorly understood. Here, we report that MNS1, a coiled-coil protein of unknown function, is essential for spermiogenesis. We find that MNS1 is expressed in the germ cells in the testes and localizes to sperm flagella in a detergent-resistant manner, indicating that it is an integral component of flagella. MNS1-deficient males are sterile, as they exhibit a sharp reduction in sperm production and the remnant sperm are immotile with abnormal short tails. In MNS1-deficient sperm flagella, the characteristic arrangement of "9+2" microtubules and outer dense fibers are completely disrupted. In addition, MNS1-deficient mice display situs inversus and hydrocephalus. MNS1-deficient tracheal motile cilia lack some outer dynein arms in the axoneme. Moreover, MNS1 monomers interact with each other and are able to form polymers in cultured somatic cells. These results demonstrate that MNS1 is essential for spermiogenesis, the assembly of sperm flagella, and motile ciliary functions.