The Research and Analysis Wing (R&AW or RAW) is the primary foreign intelligence agency of India. It was created after the Sino-Indian War 1962 and Indo-Pakistani War of 1965 which exposed gaps in intelligence gathering undertaken by the Intelligence Bureau (which until then handled both domestic and foreign intelligence). This convinced the Government of India that a specialised, independent agency was required for foreign intelligence gathering. Thus R&AW was formed in September 1968 under the guidance of its first Director, Rameshwar Nath Kao.