Why did the Nazis have power?

They had power with a very powerful ruler and had soldiers and killed Jewish people.