In 1846, as the Mexican-American War was starting, some Americans in California hoped to create a California Republic. These men flew a "Bear flag" that had a golden bear with a star on it. This Republic ended suddenly, however, when Commodore John D. Sloat of the United States Navy sailed into San Francisco Bay. He said that California was now part of the United States. After the war with Mexico ended, California was split between the two countries. The Mexican portion became the Mexican states of Baja California Norte (north) and Baja California Sur (south). ("Baja" means "lower" in Spanish.) The western part of the part given to the United States became today's state of California.