During the Bear Flag Revolt, from June to July 1846, a small group of American settlers in California rebelled against the Mexican government and proclaimed California an independent republic. The republic was short-lived because soon after the Bear Flag was raised, the U.S. military began occupying California, which went on to join the union in 1850. The Bear Flag became the official state flag in 1911.