The government's takeover of foreign businesses, particularly petroleum companies, upset Britain and the United States, who both ended aid to Sri Lanka. As a result, Bandaranaike made a closer relationship with China and the Soviet Union. In 1962, Christian officers of the military made an unsuccessful attempt at a coup d'état. Bandaranaike lost a vote of confidence in 1964, and her party was defeated in the resulting elections in 1965. Before she was replaced, Bandaranaike's government signed an agreement with India over the status of about one million Tamils: 600,000 were to be granted Indian citizenship and repatriated, and 375,000 were to be granted Sri Lankan citizenship.