Why did the Nazis pass the Nuremberg Laws?

They wanted to protect Jewish people.
They were concerned about anti-Semitism.
They wanted to legalize discrimination against Jewish people.
They wanted to make it difficult to identify who was Jewish.