Misoprostol which is a medication used to treat stomach and duodenal ulcers by helping the stomach protect itself against acid damage, and decreases the amount of acid produced by the stomach takes about 30 minutes to dissolve in the mouth without eating or drinking anything.