Photodynamic therapy is used to treat a variety of medical conditions, including certain types of cancer (such as skin cancer, lung cancer, and esophageal cancer), precancerous lesions, skin conditions (such as acne, actinic keratosis, and psoriasis), and certain infections (such as fungal infections or antibiotic-resistant bacteria).