These are wars fought to secure a country's defense, primarily in response to an external attack or perceived threat.