Endocrinology is a medical specialty that focuses on the diagnosis and treatment of disorders related to hormones and the endocrine system.