Complex sentence: The Portuguese again destroyed the temple in the early 1600s CE. But the temple was rebuilt by the local people and it use nominally under use when Kirti Sri Rajasinha (1747-1782) of the Kandyan Kingdom had the superstructure rebuilt in the 1750s.
Split into simpler sentences: The Portuguese again destroyed the temple in the early 1600s CE, but the temple was rebuilt by the local people. It was nominally under use when Kirti Sri Rajasinha (1747-1782) of the Kandyan Kingdom had the superstructure rebuilt in the 1750s.