The same virus, called varicella zoster, causes both chickenpox and shingles. With chickenpox, the virus leaves an itchy, spotted rash all over your body.
After you get over it, the virus stays inside your body. It goes into a sleep-like state. Years later, it can "wake up" and cause shingles.