Cabergoline is a dopamine agonist medication primarily used to treat disorders associated with high levels of the hormone prolactin. It works by inhibiting the secretion of prolactin from the pituitary gland. Cabergoline is often prescribed for conditions such as hyperprolactinemia and prolactinomas (prolactin-secreting tumors).