An endotracheal tube is a medical device inserted through the mouth or nose into the trachea to maintain an open airway or to deliver anesthesia or mechanical ventilation. It is crucial in situations where the patient cannot breathe independently, ensuring proper oxygenation and ventilation during surgery or critical care.