The protection of a country's citizens, infrastructure, and territory from threats, both at home and abroad.