The endocrine system maintains homeostasis in the body by releasing hormones that target specific organs and tissues. Hormones are chemical messengers that circulate through the bloodstream and are produced by endocrine glands. The endocrine system works closely with the nervous system to regulate various bodily functions through hormonal and neural pathways. There are two main types of glands - endocrine glands which secrete hormones directly into the bloodstream, and exocrine glands which secrete substances through ducts.