How did Nazis justify the persecution of political opponents such as leftists and communists?

The Nazis justified the persecution of political opponents such as leftists and communists by portraying them as enemies of the state and a threat to national security. They spread propaganda that painted political opponents as traitors who were working to undermine the German nation and its values. By labeling them as enemies of the state, the Nazis sought to justify their actions and garner public support for their persecution of these groups. Additionally, the Nazis believed in their own ideology of Aryan superiority and saw anyone who did not align with their beliefs as inferior and dangerous to their vision of a racially pure society. This ideological justification, combined with the perceived threat to national security, provided the Nazis with a rationale for targeting and persecuting political opponents.