Anubis was one of the deities that could also work against humans. He was independent, sometimes helpful, but sometimes punished humans as well. One of his main roles was ''The Guardian of the Scales''. This was related to the belief that after death a person meets the gods who put his or her heart on a special scale. The scenes of the weighing of the heart ceremony from the Book of the Dead present Anubis - who measured if the person was worthy enough to live an eternal life. Thus, Anubis could decide the soul’s fate.
https://www.*******************/sites/default/files/Egyptian-god-Anubis.jpg
------------------------------------------------------
Ancient Origins.net have some really good articles on their website to know more about Anubis The Egyptian God.