Vecna the Archlich

Medium Undead (Wizard), Lawful Evil
Armor Class 18 (natural armor)
Hit Points 272 (32d8 + 128)
Speed 30 ft.
STR
14 (+2)
DEX
16 (+3)
CON
18 (+4)
INT
22 (+6)
WIS
24 (+7)
CHA
16 (+3)
Saving Throws Con +12, Int +14, Wis +15
Skills Arcana +22, History +14, Insight +15, Perception +15
Damage Resistances cold, lightning, necrotic
Damage Immunities poison; bludgeoning, piercing, and slashing from nonmagical attacks
Condition Immunities charmed, exhaustion, frightened, paralyzed, poisoned, stunned
Senses truesight 120 ft., passive Perception 25
Languages Common, Draconic, Elvish, Infernal
Challenge 26 (90000 XP)     Proficiency Bonus +8

Legendary Resistance (5/Day). If Vecna fails a saving throw, he can choose to succeed instead.

Special Equipment. Vecna carries a magic dagger named Afterthought. In the hands of anyone other than Vecna, Afterthought is a +2 dagger.

Undying. If Vecna is slain, his soul refuses to accept its fate and lives on as a disembodied spirit that fashions a new body for itself after 1d100 years. Vecna's soul can fashion a new body even if its old body was burned to ash or otherwise obliterated. When the new body is complete, Vecna regains all his hit points and becomes active again. Vecna's new body appears anywhere within 100 miles of where Vecna was slain.

Unusual Nature. Vecna doesn't require air, food, drink, or sleep.

Actions

Multiattack. Vecna uses Flight of the Damned (if available), Rotten Fate, or Spellcasting. He then makes two attacks with Afterthought.

Afterthought. Melee Weapon Attack: +13 to hit, reach 5 ft., one target. Hit: 7 (1d4 + 5) piercing damage plus 9 (2d8) necrotic damage. If the target is a creature, it is afflicted by entropic magic, taking 9 (2d8) necrotic damage at the start of each of its turns. Immediately after taking this damage on its turn, the target can make a DC 20 Constitution saving throw, ending the effect on itself on a success. Until it succeeds on this save, the afflicted target can't regain hit points.

Flight of the Damned (Recharge 5–6). Vecna conjures a torrent of flying, spectral entities that fill a 120-foot cone and pass through all creatures in that area before dissipating. Each creature in that area must make a DC 22 Constitution saving throw. On a failed save, the creature takes 36 (8d8) necrotic damage and is frightened of Vecna for 1 minute. On a successful save, the creature takes half as much damage and isn't frightened. A frightened creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success.

Rotten Fate. Vecna causes necrotic magic to engulf one creature he can see within 120 feet of himself. The target must make a DC 22 Constitution saving throw, taking 96 (8d8 + 60) necrotic damage on a failed save, or half as much damage on a successful one. A Humanoid killed by this magic rises as a zombie at the start of Vecna's next turn and acts immediately after Vecna in the initiative order. The zombie is under Vecna's control.

Spellcasting. Vecna casts one of the following spells, requiring no material components and using Intelligence as the spellcasting ability (spell save DC 22):

At will: animate dead (as an action), detect magic, dispel magic, fly, lightning bolt, mage hand, prestidigitation
2/day each: dimension door, invisibility, scrying (as an action)
1/day each: dominate monster, globe of invulnerability, plane shift (self only).
Bonus actions

Vile Teleport. Vecna teleports, along with any equipment he is wearing or carrying, up to 30 feet to an unoccupied space he can see. He can cause each creature of his choice within 15 feet of his destination space to take 10 (3d6) psychic damage. If at least one creature takes this damage, Vecna regains 80 hit points.

Reactions
Vecna can take up to three reactions per round but only one per turn.

Dread Counterspell. Vecna utters a dread word to interrupt a creature he can see that is casting a spell. If the spell is 4th level or lower, it fails and has no effect. If the spell is 5th level or higher, Vecna makes an Intelligence check (DC 10 + the spell's level). On a success, the spell fails and has no effect. Whatever the spell's level, the caster takes 10 (3d6) psychic damage if the spell fails.

Fell Rebuke. In response to being hit by an attack, Vecna utters a fell word, dealing 10 (3d6) necrotic damage to the attacker, and Vecna teleports, along with any equipment he is wearing or carrying, up to 30 feet to an unoccupied space he can see.

When his physical form started to succumb to the ravages of time, Vecna called upon the forbidden arts of necromancy to transform himself into a lich. Then he forged to a fallen paladin known as Kas, his personal guard, a terrifying weapon known as the Sword of Kas. Later, Kas turned on Vecna and used the sword to sever the archlich's hand and put out his eye. No one knows why Kas betrayed Vecna. After their clash, Kas and Vecna disappeared for ages, then Vecna emerged later as the ruler of the wasteland domain of Tovag in the Shadowfell. He spent several centuries questing for his severed hand and eye. More recently, Vecna decamped to the Outer Planes, where he grew so powerful that he became a god. He has many ardent worshipers, all hungry for a taste of his immense power.
This stat block depicts Vecna in his archlich form prior to Kas's betrayal.
Extra (D&D Beyond)
Vecna the Archlich