Caenorhabditis elegans male mating provides an excellent opportunity to determine how sensory perception regulates behavior and motor programs. The male-specific nervous system and muscles are superimposed over the general nervous system and musculature. Genetic screens and genomic approaches have identified male-specific and male-enriched genes as well as non-sex specific molecules specialized for mating sub-behaviors. In this chapter, we discuss the cellular, genetic, and molecular basis for male mating behavior.