The California Republic, also known as the Bear Flag Republic, was a short-lived independent state that existed from June 14 to July 9, 1846. It emerged during the Bear Flag Revolt, when a group of American settlers in California revolted against Mexican rule and declared independence, ultimately paving the way for American military campaigns in the region during the Mexican-American War.