How to defeat the pharaoh

So first of all i am new here. And i have a question. How do you defeat the pharaoh?