When the Roman Empire was divided in 395, most of Serbia remained under the Eastern Roman Empire. At the same time, its northwestern parts were included in the Western Roman Empire. By the 6th century, South Slavs migrated into the European provinces of the Byzantine Empire in large numbers. They merged with the local Romanised population that was gradually assimilated.