Misoprostol is a synthetic prostaglandin medication used to prevent and treat stomach and duodenal ulcers, induce labor, cause an abortion, and treat postpartum bleeding due to poor contraction of the uterus. Misoprostol is taken by mouth when used to prevent gastric ulcers in persons taking NSAIDs.