Feudalism was a system that primarily relied on agriculture as its economic foundation, with the majority of the population engaged in farming to support their livelihoods and those of their lords.