The Empire of Japan invaded the Andaman islands in 1942 and drove out the British. The Cellular Jail then became home to British prisoners. During this period, Subhas Chandra Bose also visited the island. In 1945, the British resumed control with the end of World War II.