Male mating in Caenorhabditis elegans is a complex behavior with a strong mechanosensory component. C. elegans has several characterized mechanotransducer proteins, but few have been shown to contribute to mating. Here, we investigated the roles of PEZO-1, a piezo channel, and TRP-4, a mechanotransducing TRPN channel, in male mating behavior. We show that pezo-1 is expressed in several male-specific neurons with known roles in mating. We show that, among other neurons, trp-4 is expressed in the PCA sensory neuron, which monitors relative sliding between the male and the hermaphrodite and inhibits neurons involved in vulva detection. Mutations in both genes compromise many steps of mating, including initial response to the hermaphrodite, scanning, turning, and vulva detection. We performed pan-neuronal imaging during mating between freely-moving mutant males and hermaphrodites. Both pezo-1 and trp-4 mutants showed spurious activation of the sensory neurons involved in vulva detection. In trp-4 mutants, this spurious activation might be caused by PCA failure to inhibit vulva-detecting neurons during scanning. Indeed, we show that without functional TRP-4, PCA fails to detect the relative sliding between the male and hermaphrodite. Cell-specific TRP-4 expression restores PCA's mechanosensory function. Our results demonstrate new roles for both PEZO-1 and TRP-4 mechanotransducers in C. elegans mating behavior.