Forts and fortifications in Sri Lanka date back thousands of years with many being built by Sri Lankan Kings, these include several walled cities. With the out set of colonial rule in the Indian Ocean, Sri Lanka was occupied by several major colonial empires that from time-to-time became the dominant power in the Indian Ocean. The colonists built several western styled forts, mostly in and round the coast of the island. The first to build colonial forts in Sri Lanka were the Portuguese, these forts were captured and later expanded by the Dutch. The British occupied these Dutch forts during the Napoleonic wars.