Elaborate motor programs are characteristic of C. elegans male mating behavior. Driven by sensory perception males undergo a number of invariant steps allowing the male to locate, confront, and copulate with the hermaphrodite. Studies of C. elegans male mating have elucidated the cellular role of evolutionary conserved polycystins, which has further shed light on their human homologs in autosomal dominant polycystin kidney disease.