Under Roman control, the Iberian Peninsula prospers commercially and politically in the first and second centuries A.D., until the Moors attack from North Africa in the latter part of the second century. The Franks from the middle and lower Rhine regions devastate the Hispanic provinces in the third century. In the aftermath, Diocletian divides the peninsula into six Roman provinces that survive only until the Visigoths establish their kingdom in 409.