A compound, usually synthetic, that acts in a similar way to its natural counterpart by binding to a receptor or protein.