The sensation of pain is essential for the preservation of the functional integrity of the body. However, the key molecular regulators necessary for the initiation of the development of pain-sensing neurons have remained largely unknown. Here, we report that, in mice, inactivation of the transcriptional regulator PRDM12, which is essential for pain perception in humans, results in a complete absence of the nociceptive lineage, while proprioceptive and touch-sensitive neurons remain.