Pain is a multidimensional perception that includes unpleasant somatosensory and affective experiences; however, the underlying neural circuits that mediate different components of pain remain elusive. Although hyperactivity of basolateral amygdala glutamatergic (BLAGlu) neurons is required for the somatosensory and emotional processing of pain, the precise excitatory inputs to BLAGlu neurons and their roles in mediating different aspects of pain are unclear. Here, we identified two discrete glutamatergic neuronal circuits in male mice: a projection from the insular cortex glutamatergic (ICGlu) to BLAGlu neurons, which modulates both the somatosensory and affective components of pain, and a projection from the mediodorsal thalamic nucleus (MDGlu) to BLAGlu neurons, which modulates only the aversive-affective component of pain. Using whole-cell recording and fiber photometry, we found that neurons within the IC→BLA and MD→BLA pathways were activated in mice upon inflammatory pain induced by injection of complete Freund’s adjuvant (CFA) into their paws. Optical inhibition of the ICGlu→BLA pathway increased the nociceptive threshold and induced behavioral place preference in CFA mice. In contrast, optical inhibition of the MDGlu→BLA pathway did not affect the nociceptive threshold but still induced place preference in CFA mice. In normal mice, optical activation of the ICGlu→BLA pathway decreased the nociceptive threshold and induced place aversion, while optical activation of the MDGlu→BLA pathway only evoked aversion. Taken together, our results demonstrate that discrete ICGlu→BLA and MDGlu→BLA pathways are involved in modulating different components of pain, provide insights into its circuit basis, and better our understanding of pain perception.