Having no need to protect themselves for hundreds of years made the still rather large population of the Roman Empire sitting ducks when, for example, the legions were withdrawn from Britain. The pickings in the Empire were richer than those outside, and the mass migrations of quite a number of different people led to a century or more here and there of various successor states of different sizes and cohesion. The Vandals wound up in modern Tunisia after ripping through during the 5th century. And of course, the Empire had already gone through nearly all the 3rd century broken into schismatic mini-empires, partly in response to, and partly as a cause of, barbarian migrations. During the 3rd century there was a blossoming of free market commerce and local autonomy that more than set the stage for the "Dark Ages" / medieval division into small city-states and principalities. In the 6th c Procopius lamented Justinian's campaign to reconquer the western provinces. The feudal society developed as a consequence of the need for common defense and also the need for the self-appointed nobility to boss everyone around. :^)