The thyroid gland is the largest endocrine gland in the human body, with the main function of regulating metabolism.