The Bear Flag Treaty was an agreement signed in 1846 that marked the end of the Bear Flag Revolt, a short-lived rebellion by American settlers in California against Mexican rule. This treaty acknowledged the newly declared Republic of California's existence and led to its annexation by the United States, reflecting the broader context of American expansionism during the mid-19th century.