Bangladesh and India have signed a historic agreement to simplify their border by exchanging more than 150 enclaves of land.
India’s Prime Minister Narendra Modi ratified the deal with his counterpart Sheikh Hasina in Dhaka.
Thousands of Bangladeshis inhabit more than 50 enclaves in India, while Indians live in around 100 areas within Bangladesh.
The countries will now swap territories and residents can choose where to live.
“We have resolved a question that has lingered since independence. Our two nations now have a settled boundary,” Mr Modi said at a press conference.
“We are not just neighbours, but nations bound by the threads of history, religion, culture, language and kinship – as well as a passion for cricket.”
Bangladesh Foreign Minister Abul Hassan Mahmood Ali described the agreement as “a historic milestone in the relationship between the two neighbouring countries”.
Modi and Sheikh Hasina have also agreed to inaugurate a bus service that will link the Indian cities of Kolkata (Calcutta), Agartala, Guwahati and Shillong with Dhaka.
The agreement is significant because it is the first step by Bangladesh to allow road transit to India, a long-running Indian demand which it hopes will eventually enable it to have better access to its north-eastern states.
The enclaves along the 4,000km border are a legacy of colonial times – the British departed India before the border was properly demarcated – and have been a contentious issue between the two nations for decades.
Inhabitants are in effect stateless and lack access to public services.
In some enclaves it is possible to find houses that straddle both countries.
Mr Ali said the two countries would also sign a number of deals to boost trade and security along the border, fight human trafficking and share water resources.