Trincomalee’s history stretches back over two and a half millennia. Originally known in ancient times as *Gokanna* (or *Gokarna*), it served as a major seaport for the Anuradhapura Kingdom. The city has long been a focal point of Hindu civilization in Sri Lanka, home to the Koneswaram Temple (the "Temple of a Thousand Pillars"), which was praised in hymns by the 7th-century Saiva saint Campantar. Over the centuries, the port was heavily utilized by the Pallava, Chola, and Pandyan empires of South India, as well as the Kandyan Kings of Sri Lanka.
In the 17th century, Trincomalee became a battleground for European colonial powers drawn by its strategic harbor. The Portuguese arrived in the 1620s, destroying the ancient Koneswaram Temple to build Fort Frederick from its ruins. The Dutch subsequently captured the fort in 1639, eventually surrendering it to the British in 1795. Under British rule, Trincomalee flourished as a premier naval base. During World War II, it was the headquarters of the British Royal Navy’s Eastern Fleet and famously withstood a devastating attack by the Imperial Japanese Navy in April 1942.
Following Sri Lanka's independence in 1948, Trincomalee saw shifting demographic and political landscapes. It was severely affected by the Sri Lankan Civil War (1983–2009), serving as a strategic flashpoint and suffering infrastructural damage and population displacement. In 2004, the region was profoundly impacted by the Indian Ocean Tsunami, which caused massive loss of life and property. Since the war's conclusion in 2009, Trincomalee has undergone extensive rebuilding, emerging as a peaceful, vibrant hub for trade and tourism.

