The selection of reward-seeking and aversive behaviors is controlled by two distinct D1 and D2 receptor-expressing striatal medium spiny neurons, namely the direct pathway MSNs (dMSNs) and the indirect pathway MSNs (iMSNs), but the dynamic modulation of signaling cascades of dMSNs and iMSNs in behaving animals remains largely elusive. We developed an in vivo methodology to monitor Förster resonance energy transfer (FRET) of the activities of PKA and ERK in either dMSNs or iMSNs by microendoscopy in freely moving mice. PKA and ERK were coordinately but oppositely regulated between dMSNs and iMSNs by rewarding cocaine administration and aversive electric shocks. Notably, the activities of PKA and ERK rapidly shifted when male mice became active or indifferent toward female mice during mating behavior. Importantly, manipulation of PKA cascades by the Designer Receptor recapitulated active and indifferent mating behaviors, indicating a causal linkage of a dynamic activity shift of PKA and ERK between dMSNs and iMSNs in action selection.in vivo FRET imaging | microendoscope | dorsal striatum | action selection | mating behavior I n changing environments, animals are forced to choose actions among several alternatives to survive and to keep offspring for the next generation. A brain region critical for initiation and selection of actions is the striatum (1-3), and its dysfunction leads to devastating neurological and psychiatric disorders such as Parkinson's disease and drug addiction (4-7). The striatum receives convergent glutamatergic inputs from virtually all cortical areas and the thalamus, and dopaminergic inputs from the substantia nigra pars compacta (SNc) and the ventral tegmental area (8, 9). The glutamatergic inputs convey various sensory, motor, and cognitive information and drive striatal medium spiny projection neurons (MSNs) to fire, whereas the dopaminergic inputs strongly influence synaptic transmission and excitability of MSNs (10, 11). MSNs are divided into two subpopulations, the direct pathway MSN (dMSN) expressing Gs-coupled dopamine D1 receptors and sending axons directly to the internal segment of the globus pallidus (GPi) and the substantia nigra pars reticulata (SNr), and the indirect pathway MSN (iMSN) expressing Gi-coupled D2 receptors and sending axons indirectly to the SNr via the external segment of the globus pallidus (GPe) and subthalamic nucleus (12, 13).Intracellular signaling cascades operating in these two types of MSNs are important for plastic modification of synaptic transmission and excitability (14, 15). Among them, protein kinase A (PKA) and extracellular signal-regulated kinase (ERK) have been shown to be the key molecules in these signaling cascades (10,14,16). PKA is positively and negatively regulated by Gs-coupled D1 and Gi-coupled D2 receptors, respectively, and contributes to the regulation of a wide range of cellular substrates (10,11,16). ERK has been shown to sense coincidental dopaminergic and glutamatergic activations to induce protein synthesis and synaptic modif...