What freed California from Mexican rule?

The United States won the Mexican-American War (1846-1848), which led to the Mexican Cession in the Treaty of Guadalupe Hidalgo. That gave control of California to the U.S. from Mexico.
Copyright Wanderlust World © https://www.ynyoo.com