was arranged; the formal flag-raising took place at Fort Sitka on October 18, 1867. In the ceremony 250 uniformed U.S. soldiers marched to the governor's house at "Castle Hill", where the Russian troops lowered the Russian flag and the U.S. flag was raised. This event is celebrated as Alaska Day, a legal holiday on October 18. Alaska was loosely governed by the military initially, and was administered as a district starting in 1884, with a governor appointed by the United States president. A federal district court was headquartered in Sitka. For most of Alaska's first decade under the United States flag, Sitka was the only community inhabited by American settlers. They organized a "provisional city government", which was Alaska's first municipal government, but not in a legal sense. Legislation allowing Alaskan communities to legally incorporate as cities did not come about until 1900, and home rule for cities was extremely limited or unavailable until statehood took effect in 1959. Alaska as an incorporated U.S. territory Starting in the 1890s and stretching in some places to the early 1910s, gold rushes in Alaska and the nearby Yukon Territory brought thousands of miners and settlers to Alaska. Alaska was officially incorporated as an organized territory in 1912. Alaska's capital, which had been in Sitka until 1906, was moved north to Juneau. Construction of the Alaska Governor's Mansion began that same year. European immigrants from Norway and Sweden also settled in southeast Alaska, where they entered the fishing and logging industries. During World War II, the Aleutian Islands Campaign focused on Attu, Agattu and Kiska, all of which were occupied by the Empire of Japan. During the Japanese occupation, a white American civilian and two United States Navy personnel were killed at Attu and Kiska respectively, and nearly a total of 50 Aleut civilians and eight sailors were interned in Japan. About half of the Aleuts died during the period of internment. Unalaska/Dutch Harbor and Adak became significant bases for the United States Army, United States Army Air Forces and United States Navy. The United States Lend-Lease program involved flying American warplanes through Canada to Fairbanks and then Nome; Soviet pilots took possession of these aircraft, ferrying them to fight the German invasion of the Soviet Union. The construction of military bases contributed to the population growth of some Alaskan cities. Statehood Statehood for Alaska was an important cause of James Wickersham early