India has not officially invaded any other country since becoming an independent nation in 1947. However, it has been involved in several military operations and conflicts over the years in neighboring countries. India was involved in conflicts with Pakistan in 1947 and 1965, and with China in 1962. India also fought a war with Pakistan in 1971, resulting in the creation of Bangladesh. India also took part in the liberation of East Pakistan in 1971. India has also been involved in several military operations in Afghanistan and Sri Lanka, including Operation Pawan in 1987 and Operation Cactus in 1988. India has also conducted several cross-border operations, including Operation Meghdoot in 1984, Operation Parakram in 2001-02, and Operation Vijay in 1999.