Elagolix is an oral medication that functions as a gonadotropin-releasing hormone (GnRH) antagonist. It is primarily used in the field of gynecology for the management of conditions like endometriosis and uterine fibroids. By inhibiting GnRH receptors in the pituitary gland, elagolix reduces the production of estrogen, thereby alleviating symptoms associated with these conditions.