Ruled in the early sixth century by Theodoric , king of the Ostrogoths , it was recaptured for Emperor Justinian in 540 , and Byzantine culture left its mark for another two centuries .
It was considered a key trading post as it was surrounded on all sides by major rivers .