When the Mexican–American War was declared on May 13, 1846, it took almost two months (mid-July 1846) for word to get to California. On June 14, 1846, some 30 non-Mexican settlers, mostly Americans, staged a revolt and seized the small Mexican garrison in Sonoma. They raised the "Bear Flag" of the California Republic over Sonoma. The "Bear Flag Republic" lasted only 26 days, until the U.S. Army, led by John Frémont, took over on July 9. The California state flag today is based on this original Bear Flag, and continues to contain the words "California Republic."