Pathfinder: Wrath of the Righteous lets you play as a powerful lich. You need to unlock the Mythic Lich Path to do this. You can learn how to unlock this Mythic Path below.
To unlock this Mythic path, you must acquire Zacharius' Wand and return it to Zacharius. This is in the Leper's Smile location which you will need to explore as part of the story. You don't need to get the wand on your first visit to this place.
Related: All Mythic Paths in Pathfinder: Wrath of the Righteous
Behind where you meet Queen Yescavor in the Leper's Smile, you'll spot a crevasse. Enter it to reach the Leper's Smile basement. Once underground, take the left path. You will encounter several monsters as well as traps that you will have to overcome. At the end of this path is a shiny chest surrounded by more powerful warriors. These mobs will keep respawning until you interact with the chest. A cutscene will trigger and you will be offered a choice. Select the evil option and you will receive Zacharius' wand.
Zacharius can be found in the basement of the Lost Chapel location where you will need to go during the story. The basement is at the end of the lost chapel. There are lots of enemies in the basement that you need to defeat. You will find Zacharius in one of the side rooms. Return the wand to him and he will promise to meet you in the future as well as unlock the Mythic Lich Path.
For more information on Pathfinder: Wrath of the Righteous, see How to Identify Objects in Pathfinder: Wrath of the Righteous and How to Disarm Traps in Pathfinder Wrath of the Righteous on Pro Game Guides.