Spain remained under Roman rule until the collapse of the Western Roman Empire in the fourth century, which ushered in Germanic tribal confederations from Central and Northern Europe. During this period, present-day Spain was divided between different Germanic powers, including the Suevi, Alans, Vandals and Visigoths, the latter maintaining an alliance with Rome via ''foedus'', while part of Southern Spain belonged to the Byzantine Empire. Eventually, the Visigoths emerged as the dominant faction by the fifth century, with the Visigothic Kingdom spanning the vast majority of the Iberian Peninsula, and established its capital in what is now the city of Toledo. The creation of the code of laws ''Liber Iudiciorum'' by the King Recceswinth during the Visigothic period deeply influenced the structural and legal bases of Spain and the survival of Roman Law after the fall of the Roman Empire.