Choking can occur due to the inhalation or ingestion of toxic substances. Certain chemicals, when inhaled, can cause swelling or spasms within the airway, leading to obstruction. For instance, exposure to chlorine gas or ammonia can cause irritation and swelling of the respiratory tract, potentially leading to choking.