Hyderabad became a princely state in 1947 after collaboration with India. But soon the Nizam had to sign an Instrument of Accession to the Union of India so that Hyderabad becomes a part of India. On 1 November 1956, the province of Hyderabad was divided into Karnataka, Maharashtra and Andhra Pradesh on the basis of language. So, Hyderabad came into the Telugu speaking community and thus became the capital of Andhra Pradesh. The state of Telangana was formed on 2 June 2014 and separated from Andhra Pradesh retaining Hyderabad as it's capital.