Why were the Nuremberg laws passed?

The Nuremberg laws were passed as a response to the atrocities of the wars. They were meant to prevent more horrible things from happening.