Pericardial effusion caused by pulmonary nodules can be treated with medication and surgery. 1. Drug treatment: patients with pericardial effusion have symptoms such as dyspnea and pallor, due to pulmonary nodules, which may be due to bacterial infection of the lungs and tuberculosis bacterial infection, they can take some drugs such as amoxicillin and rifampicin under the guidance of the doctor to carry out the treatment. 2. Surgical treatment: if the patient has a large amount of pericardial effusion and symptoms of heart compression symptoms, at this time, surgical treatment should be carried out to suction or drain out the effusion, and pericardiocentesis can be used to contact the heart’s compression. When a patient develops a pulmonary nodule that can lead to pericardial effusion, he or she should seek medical attention in a timely manner, closely observe the patient’s respiration, heart rate, and other characteristics, pay attention to diet, avoid spicy and stimulating and overly oily foods, and take medications and undergo post-treatment therapy under the advice of a doctor.