Indian Prime Minister Narendra Modi's official visit to Sri Lanka on Friday reflects a bounce back in bilateral relations as the South Asian power seeks to mitigate China's growing influence on its Indian Ocean neighbors.

Sri Lanka is the last stop on Modi's trip after visits to Indian Ocean island states Seychelles and Mauritius. It comes after three decades of mostly rocky relations largely due to an ethnic separatist conflict in Sri Lanka.

Ties fell further to their lowest levels in the final years of the nine-year administration of former President Mahinda Rajapaksa, whose pro-Chinese policies threatened India's say in the region. But Rajapaksa's election defeat in January at the hands of Maithripala Sirisena has reversed that trend, especially when Sirisena picked India for his first official visit.

The Sri Lanka government is also reviewing China-funded infrastructure development projects and has suspended the $1.5 billion Port City project pending checks into environmental issues and alleged corruption. The project to build a city on reclaimed land off the western coast came to be viewed as the face of Chinese influence in Sri Lanka. It was inaugurated in September during a visit by Chinese President Xi Jinping.

Modi said on his official twitter account this week that his aim is to boost relations. "This visit is also part of my objective of maintaining frequent contact with our neighboring countries. I am delighted with the opportunity to visit one of our most important neighbors."

Xi's visit, the first by a Chinese head of state in 28 years, was part of a tour that included India. But he also won support from Sri Lanka and its neighbor the Maldives for his new maritime Silk Road concept, which is seen as a way of encircling India and controlling port access along sea lanes linking the energy-rich Persian Gulf and economic centers in eastern China.

China and Sri Lanka have had longstanding ties which were boosted by Beijing supplying weapons during Sri Lanka's civil war against ethnic Tami rebels fighting for an independent state. India, Sri Lanka's closest neighbor, refrained from selling arms for fear of antagonizing its own sizable Tamil population.

China has also consistently defended Sri Lanka at the United Nations from allegations of human rights violations committed during the civil war, and has increased its presence on the island by building highways, a seaport, an airport and power plants.

According to China's state-run Xinhua News Agency, the Chinese ambassador to Sri Lanka, Yi Xianliang, told reporters that it was important for Sri Lanka to honor its agreements, and that Beijing is confident that bilateral relations will remain strong.

That heavy Chinese presence in a country just 50 kilometers (30 miles) away made India apprehensive. The prospect of China being given outright ownership over part of the Port City land increased the worries.

It is the first visit by an Indian prime minister in 28 years since the late Rajiv Gandhi arrived on the island nation in 1987 to sign a peace accord in an effort to end the armed Tamil uprising armed campaign then in its early years.

It was a tumultuous period in relations as India was accused of training and arming the Tamil rebels, and then tried to mediate by sending a peacekeeping force. That upset some among the majority Sinhalese, while the Tamils saw it as a betrayal and subsequently fought the Indian troops.

During his visit Gandhi narrowly escaped serious injury when a Sri Lankan sailor hit him with his rifle butt during a guard of honor inspection. Four years later in 1991 the Tamil Tigers assassinated Gandhi during an election rally in southern India.

During his three-day visit Modi will hold talks with Sirisena and Prime Minister Ranil Wickremesinghe, and address Parliament. He will also inaugurate a cultural center in Jaffna, the ethnic Tamil heartland in northern Sri Lanka.