In 1858, gold was discovered in the Fraser River in what is now the interior of British Columbia, and the fort also became important as a supply station for the miners heading up the river toward the gold fields. With thousands of gold prospectors, many of them American, streaming into the region, the British government created British Columbia as a colony. James Douglas was sworn in as the new colony's first governor in Fort Langley, but New Westminster was chosen as the capital, as Fort Langley was less defensible from an American invasion.