Nurses play a crucial role in the management of warts by providing patient education, administering treatments, and offering emotional support. They can educate patients on preventive measures, such as avoiding direct contact with warts and maintaining good personal hygiene to reduce the risk of transmission.