Shingles, also known as herpes zoster, is caused by the varicella-zoster virus (VZV), the same virus that causes chickenpox. Anyone who has had chickenpox can develop shingles later in life, as the virus remains inactive in the body's nerve tissues after the initial chickenpox infection. Shingles occurs when the virus reactivates, typically in older adults or individuals with weakened immune systems.