Gastrointestinal pharmacology is a branch of medicine that studies the effects of medications on the digestive system. This includes how drugs are absorbed, metabolized, and eliminated by the body, as well as the mechanisms of action of drugs on the digestive tract. It also covers the diagnosis and treatment of gastrointestinal disorders. Some of the drugs used in this field work by inhibiting the action of enzymes that break down food in the small intestine, thereby slowing digestion and allowing more time for the absorption of nutrients. Other drugs work by increasing the production of digestive juices, such as bile and pancreatic enzymes, to help break down food more easily. Drugs that reduce acid production in the stomach are sometimes useful for treating ulcers and other gastric problems. Proton-pump inhibitors, for example, block the production of stomach acid, which can reduce the pain and inflammation associated with ulcers. Antacids are also used to treat heartburn and acid reflux. These medications work by neutralizing the acid in the stomach, which helps to reduce irritation and inflammation. Antibiotics are sometimes used to treat various gastrointestinal infections.