An agonist is a molecule that activates a receptor, while an antagonist is a molecule that blocks or inhibits receptor activation.