CBD interacts with the endocannabinoid system by binding to cannabinoid receptors in the body, specifically the CB1 and CB2 receptors. This interaction may help regulate various functions in the body, including mood, pain, and sleep.