The city became the island's capital around the 10th century. It had grown in importance because of threats to the coastal cities Paphos and Salamis. These threats made many people leave the coast of the island and move to Lefkosia in the center of the island.