Jung (Asaf Jah II's elder brother supported by De Bussy), the Nizam signed a subsidiary alliance with the East India Company in 1798, allowing British troops to stationed at Bolaram (modern Secunderabad) to protect the borders of the Hyderabad State, for which the Nizams had to pay an annual maintenance to the British. Starting from the late nineteenth century, establishment of railways, transport services, under ground drainage, running water, electricity, airport, universities and industries marked the transformation of the city to a modern one. The Nizams ruled the Hyderabad state from the city until 17 September 1948, a year after India's independence from the British Raj.
Post-independence
Following independence of India from the British Empire in 1947, the Asaf Jahi Nizam declared his intention to remain independent. In 1948, the Hyderabad State Congress began agitating against the Nizam VII, with the support of Indian National Congress and the Communist Party of India. On 17 September 1948, the Indian Army took control of Hyderabad state through Operation Polo and the Nizam VII joined Indian Union by signing the "Instrument of Accession", which made him the Rajpramukh ("Princely Governor") of Hyderabad State. A peasant uprising or Telangana uprising was a communist-led peasant rebellion against the feudal lords of the Telangana region and later against the princely state of Hyderabad between 1946 and 1951. The Constitution of India, which became effective on 26 January 1950, made Hyderabad State one of the part B states of India and Hyderabad city continued to be its capital. In 1955, B. R. Ambedkar, the then chairman of the Drafting Committee of the Indian Constitution, expressed in his report that the city should be designated as the second capital of India, due to its strategic central location in the country and available amenities.
Since 1956, the Rashtrapati Nilayam located in Hyderabad became the second official residence