Why it's the capital
The Byzantine Empire chose Nicosia as the capital of Cyprus around 965, and later it was the seat of the Lusignan kings. The city is divided by the Green Line: the south is the capital of the Republic of Cyprus, and the north is the de facto capital of Northern Cyprus, which only Türkiye recognises.