The Ambu bag is primarily used to support or restore adequate ventilation and oxygenation in patients experiencing cardiac arrest, arrhythmias, or respiratory failure associated with heart disease. It delivers positive-pressure ventilation manually, ensuring oxygen supply to vital organs when spontaneous breathing is inadequate or absent.