In Egypt during the Old Kingdom, Anubis was the most important god of the dead but he was replaced during the Middle Kingdom by Osris.]