Some 6,000,000 Muslims migrated to Pakistan from India at the time of independence in 1947, and Muslims have continued to arrive from India in much lesser numbers since then. The Soviet military intervention in Afghanistan in December 1979 led to an influx of Afghan refugees.
After the Taliban captured Kabul on 27 September 1996, there was a new outflow of Afghan refugees to Pakistan. By March of 1997, around 50,000 new Afghan refugees entered the country. As of 1999, there were still around 1.2 million Afghan refugees living in refugee villages in Pakistan. An unknown number of unregistered Afghans were living in the main Pakistani cities of Rawalpindi, Lahore, and Kara¯chi. Pakistan also hosts non-Afghan refugees, including Iraqis, Iranians, and Somalis. In 2000, the net migration rate was -0.5 migrants per 1,000 population. The total number of migrants living in Pakistan was 4,243,000 in that year. The government views the migration levels as satisfactory.