Following India’s independence in 1947, Sanjeevi Pillai was named the first Indian Director of the IB. After the British left and the bureau was depleted of trained manpower, Pillai attempted to run the bureau on MI5 lines. After the Indian debacle in the Sino-Indian War of 1962, Pillai organised a small foreign intelligence operation, but it was ineffective. Following the failure of foreign intelligence during the Sino-Indian War in 1962, then-Prime Minister Jawaharlal Nehru established a separate foreign intelligence agency. Following the 1965 Indo-Pakistani war, Army Chief of Staff General Joyanto Nath Chaudhuri called for more intelligence gathering. Around the end of 1966, the idea of establishing a separate foreign intelligence agency began to form.
Indira Gandhi’s administration determined that a full-fledged second security force was necessary. R. N. Kao, then the Intelligence Bureau’s deputy director, presented the blueprint for the new agency. Kao is the head of India’s first foreign intelligence agency, the Research and Analysis Wing. The R&AW was given joint responsibility for tactical trans-border military intelligence up to a certain depth across the Line of Control (LOC) and the international border with the Directorate-General of Military Intelligence, as well as joint responsibility for both human and technical strategic external intelligence.