California gold rush was a social phenomenon occurred in the United States between 1848 and 1855, characterized by the large number of immigrants who came to the vicinity of San Francisco (California) in search of the metal. This phenomenon began near the town of Coloma, when gold was discovered in Sutter's Mill. When the news of the discovery spread, around three hundred thousand people emigrated to California from the rest of the United States and other countries.
Land owned by Mexico was needed to expand westward, so mixed with growing tensions and Manifest Destiny, it greatly contributed to the war. It was beneficial as the US would gain more land.
The Declaration of Independence reflected the idea of popular sovereignty because it held that people should be able to overthrow and replace their government when the government becomes tyrannical.