Hiccups are caused when the diaphragm contracts out of rhythm. Each spasm closes the vocal cord suddenly and results in a sudden rush of air to the lungs. Your body reacts with a ‘hic’ sound ...
But this rush of incoming air is stopped when the opening between your vocal cords, your glottis, closes suddenly. This produces the characteristic ‘hic’ sound! Hiccups can occur spontaneously.
Hot or spicy foods, for instance, can stimulate the nerves that control the diaphragm. Eating or drinking too quickly can irritate the diaphragm - as can drinking carbonated beverages, overeating, or ...