The first Danish East India Company was chartered in 1616 under King Christian IV and focused on trade with India. The first expedition, under Admiral Gjedde, took two years to reach Ceylon, losing more than half their crew. The island had been claimed by Portugal by the time they arrived but on 10May 1620, a treaty was concluded with the Kingdom of Kandy and the foundation laid of a settlement at Trincomalee on the island's east coast. They occupied the colossal Koneswaram temple in May 1620 to begin fortification of the peninsula before being expelled by the Portuguese. After landing on the Indian mainland, a treaty was concluded with the ruler of the Tanjore Kingdom,