At the time of India's independence in 1947, there were 552 princely states that had not been part of directly British-ruled India. These states were given the option to join either India or Pakistan, and through the efforts of Sardar Vallabhbhai Patel and V.P. Menon, almost all merged with India.