Portuguese prisoners of war build a fort near Candij. The Ceylonese ruler Vimala Dharma Suriya defeated the Portuguese in a battle in 1592 and deployed the prisoners to build a fort.