Atovaquone is used to prevent or treat a serious lung infection called Pneumocystis pneumonia (PCP). This medication helps to stop infection symptoms such as fever, cough, tiredness, and shortness of breath.