Swollen and painful pus pockets next to the toenail are usually seen in nail fungus. Topical medications can be used to fight the infection, along with oral medications to achieve better results. If conservative treatment fails or if the inflammation extensively involves the nail bed, surgical treatment can be taken. A. Medication: 1. Topical medications: Commonly used creams include mupirocin ointment, fusidic acid cream, and compound polymyxin B ointment, along with topical iodophor to reduce inflammation and sterilization. If the nail fungus is secondary to onychomycosis, follow medical advice to increase antifungal medications such as ketoconazole cream, miconazole nitrate cream, etc.; 2. Oral medications: Oral antibiotics such as cephalosporin and amoxicillin should be taken in the early stage to prevent the infection from spreading to the surrounding area. If you go to the hospital for examination and clarify the causative species, you can choose sensitive antibiotics according to the in vitro drug sensitivity results, such as itraconazole, mycoplasma, etc. if accompanied by fungal infection. Second, surgical treatment: incision and drainage of abscess under lidocaine anesthesia, if it is unilateral subcutaneous abscess, clinically it can be incised on the outside of the nail groove; if it is bilateral subcutaneous abscess, it is necessary to carry out bilateral drainage at this time. In case of abscess at the nail root, it is necessary to peel off part of the nail or even the whole nail to achieve adequate drainage of the pus. Oral antibiotics can be given after surgery to control the infection.