The connection between the Nazi regime’s military aims and its racial policies?

What was the connection between the Nazi regime’s military aims and its racial policies?