Bethanechol is a synthetic cholinergic agonist that mimics the action of acetylcholine, specifically targeting muscarinic receptors in the body. It is primarily used to treat urinary retention by stimulating bladder contractions and promoting urination, making it an important drug in the realm of cholinergic agents.