Which king became king when he was six years old?

It was Pharaoh Pepi II Neferkare, who had the longest reign of any monarch in history. He became 100 years old, 94 years as Pharaoh.