Hiccups are caused by involuntary contractions of the diaphragm, often triggered by eating too quickly or swallowing air.