The Andaman and Nicobar Islands are an Indian union territory located in the Bay of Bengal. The islands comprise two main island groups - the Andaman Islands and the Nicobar Islands. The earliest inhabitants were the indigenous Andamanese people, who have lived isolated on the islands for over 2,200 years. During colonial times, the islands were controlled by Denmark, Britain, Japan, and the Azad Hind government. After Indian independence in 1947, the islands became a union territory of India.