Sri Lanka and India vowed to strengthen military ties and widen maritime links with neighbouring countries after security talks, the president’s office said Sunday, to counter growing Chinese influence in the region.

China, a long-time regional rival of India, has been widening its footprint in the region, including building ports and upgrading airports in Sri Lanka and the Maldives.

India’s National Security advisor Ajit Doval met Saturday with recently elected Sri Lanka president Gotabaya Rajapaksa and discussed setting up a maritime coor dination centre, Rajapaksa’s office said in a statement.

It did not give details of the proposed centre, but said other nations in the region should be included as observers.

It said the two countries also discussed closer military and coastguard cooperation.

The meeting followed Rajapaksa’s visit to New Delhi in late November for talks with prime minister Narendra Modi, who offered $450 million in aid to Sri Lanka after his landslide victory in the presidential election.

Sri Lanka has traditionally been allied to India, but China invested and loaned billions of dollars to the island nation during the decade-long reign of Rajapaksa’s elder brother, Mahinda Rajapaksa.

China’s foreign minister Wang Yi also held talks with president Rajapaksa on Tuesday during a brief transit stop in Colombo.

‘As Sri Lanka’s strategic partner, China will continue to stand by Sri Lanka’s interests,’ Rajapaksa’s office quoted Wang as saying.

Rajapaksa in December warned India and Western nations that Sri Lanka would be forced to seek more finance from China if they do not invest in the island.

Sri Lanka was forced to hand over the strategic Hambantota port south of Colombo to China in 2017 on a 99-year lease after the government at the time said it was unable to repay loans taken to build it.