The endocannabinoid system is a biological system throughout your body that contains receptors that allow cannabinoids like CBD to bind to.
This system is responsible for regulating specific functions of your body like: appetite, pain-sensation, mood, and memory.
The CB2 receptor that CBD binds to is responsible in the regulation of appetite, immune system functions, and pain management.