The city became the island 's capital around the 10th century .
Still known as Lefkosia , the city became the island 's capital around the 10th century .