Cabergoline belongs to a class of medications called dopamine receptor agonists (specifically acting as a D2 dopamine receptor agonist), and it is also an ergot alkaloid derivative. It works by stimulating dopamine receptors in the brain to block the release of the hormone prolactin from the pituitary gland, helping to lower high prolactin levels