 Territorial problems arose with neighbouring Afghanistan over the Pakistan–Afghanistan border in 1949, and with India over the Line of Control in Kashmir.Diplomatic recognition became a problem when the Soviet Union led by Joseph Stalin did not welcome the partition which established Pakistan and India.Imperial State of Iran was the first country to recognise Pakistan in 1947.