Cardiopulmonary resuscitation (CPR) is a lifesaving technique used in emergencies when someone's breathing or heartbeat has stopped, such as after a heart attack or drowning. The process involves a specified sequence of airway management, chest compressions, and rescue breaths to restore circulation and breathing. CPR techniques vary for adults, children, and infants, with each category having specific steps and considerations to ensure effective resuscitation.