The thyroid gland is located on either side of the trachea. It is an endocrine gland that produces hormones that regulate metabolism, growth, and development in the body. The pancreas, parathyroid, pituitary, and testis are also endocrine glands, but they are not located on either side of the trachea. Therefore, the correct answer is thyroid.