Which system controls when the endocrine system releases hormones?

The endocrine system is controlled by the nervous system, specifically the hypothalamus and pituitary gland in the brain. The hypothalamus sends signals to the pituitary gland to release or inhibit the release of hormones, which then signals the various glands in the body to release specific hormones as needed. Additionally, hormones can be influenced by feedback loops within the body to maintain homeostasis.