the pituitary gland is situated in "the Turkish saddle" connected to the hypothalamus by the hypothalamo-hypophyseal portal system and hypothalamo-hypophyseal tract.
the pineal gland is located within the diencephalon