Hiccups according to healthline are repetitive, uncontrollable contractions of the diaphragm, the muscle structure just below your lungs.
The diaphragm marks the boundary between your chest and abdomen, and it also regulates breathing.
When your diaphragm contracts, your lungs take in oxygen. When your diaphragm relaxes, your lungs release carbon dioxide.
Healthline further explains that the diaphragm contracting out of rhythm is what causes hiccups.
Each spasm of the diaphragm makes the larynx (voice box) and vocal cords close suddenly.
This results in a sudden rush of air into the lungs. Your body reacts with a gasp or chirp, creating the sound characteristic of hiccups.
However, there are methods which can be used to get rid of hiccups