In military science, defense is the art of preventing an enemy from conquering territory; usually via fortifications. Defense may also be a euphemism for war.
It was well-known ages ago that the defending side needs far less resources to keep fighting than the offensive side.