Acute mountain sickness (AMS) is a condition that occurs when individuals ascend to high altitudes too quickly, causing symptoms like headache, nausea, and dizziness due to reduced air pressure and lower oxygen levels. It can be prevented or mitigated by gradual acclimatization, staying hydrated, and in some cases, using medications like acetazolamide.