Pakistan did not exist as an independent nation during World War II. The region that would become Pakistan was part of British India, which entered the war on September 3, 1939, when the Viceroy Lord Linlithgow declared war on Nazi Germany alongside Britain—without consulting Indian political leaders.
British India made massive contributions to the Allied war effort:
The war period intensified India's independence movement. The Indian National Congress demanded immediate independence in exchange for full cooperation, leading to the 1942 "Quit India Movement." Meanwhile, the Muslim League under Muhammad Ali Jinnah supported the war effort while advocating for a separate Muslim homeland—Pakistan—which gained momentum during these years.
India's wartime contributions and the resulting political pressures accelerated decolonization. Pakistan emerged as an independent state on August 14, 1947, two years after WWII ended, born from the partition of British India.