The Safety Hood, which would later become the gas mask, was patented by Garrett Morgan.

Morgan described his invention as a “portable attachment which will enable a fireman to enter a house filled with thick, suffocating gases and smoke.”

Source