In 1939, Hitler occupied Poland. The laws by Hitler said that Prejudice against Judaism and Jews were legal. However, The Allied Powers, defeated Hitler in 1945.
At Nurénberg, Germany, The Nuremberg Trials sentenced the Nazi Leaders and other War Criminals for their Crimes. Hitler escaped Trial by commiting suicide.
This and other reasons led to the fall of Nazism.