Cabergoline is used to treat hyperprolactinemia (high levels of prolactin, a natural substance that helps breast-feeding women produce milk but can cause symptoms such as infertility, sexual problems, and bone loss in women who are not breast-feeding or men). Cabergoline is in a class of medications called dopamine receptor agonists. It works by decreasing the amount of prolactin in the body.