Pituitary gland is an endocrine gland. It secretes many hormones that regulate various functions of the body as well as function of other endocrine glands. It consists of two lobes, anterior lobe and posterior lobe. The posterior lobe produces vasopressin and oxytocin hormones.