ALDH1A1 regulates postsynaptic μ–opioid receptor expression in dorsal striatal projection neurons and mitigates dyskinesia through transsynaptic retinoic acid signaling. Here, ALDH1A1 is linked to drug-induced dyskinesia.