Antibiotics may be prescribed in severe cases of pericoronitis where there is an active infection or risk of spreading infection. However, antibiotics alone are not a long-term solution. Dental treatment, such as cleaning the affected area or extracting the impacted tooth, is often necessary to address the underlying cause of pericoronitis and prevent future episodes.