A duodenal ulcer is a type of peptic ulcer that occurs in the first part of the small intestine and is primarily caused by Helicobacter pylori infection or prolonged use of nonsteroidal anti-inflammatory drugs (NSAIDs). Treatment typically involves eradicating the infection with antibiotics and reducing stomach acid with proton pump inhibitors or H2-receptor antagonists.