The Bear Flag Revolt was a rebellion by American settlers in California against the ruling Mexican government in which the rebels 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.