The main way in which warfare and the constant threat of invasion in Europe help led to the creation of feudalism is that feudalism offered consolidation and protection for many lower-class people such as peasants who wouldn't have been able to afford such protection without offering labor to lords and other elites.