When the immune system is compromised the dormant virus that causes chickenpox can reactivate in the form of shingles.