Shingles, also known as herpes zoster, is a viral infection that causes a painful rash. It is caused by the varicella-zoster virus, the same virus that causes chickenpox. After a person has had chickenpox, the virus lies dormant in nerve tissue and can reactivate years later as shingles.