Original sentence: In 1848, the Treaty of Guadalupe Hidalgo was signed with the Mexican government, ending the Mexican War and giving California to the United States
Edited sentence: Action in California began with the Bear Flag Revolt on June 15, 1846, and armed resistance ended in California with the Treaty of Cahuenga signed on January 13, 1847.The Treaty of Guadalupe Hidalgo, ending the war and ceding California to the United States, was signed 2 February, 1848.The United States declared war against Mexico on May 13, 1846