In 1948, immediately after the country's independence, a controversial law labelled the Ceylon Citizenship Act was passed in the Sri Lankan parliament which deliberately discriminated against the Tamils of South Indian origin, whose ancestors had settled in the country in the 19th and 20th centuries. This act made it virtually impossible for them to obtain citizenship and over 700,000 Tamils (consisting of up to 11% of the country's total population) were made stateless. In 1964, a pact was signed between Bandaranaike and the then Indian Prime minister Lal Bahadur Shastri to repatriate much of the population of the stateless Tamils. Over the next 30 years, successive Sri Lankan governments were actively engaged in deporting over 300,000 Tamils back to India. It wasn't until 2003, after a state-sponsored pogrom against Tamils and a full-scale civil war, that Indian Tamils were granted citizenship but by this time, their population had dwindled to just 5% of the country's population. Tamils repatriated to India were assimilated with location population after taking Indian Citizenships, except a few pockets in Tamil Nadu, where they are still called as Ceylon Tamils.