The history of Santa Barbara, California, begins approximately 13,000 years ago with the arrival of the first Native Americans. The Spanish came in the 18th century to occupy and Christianize the area, which became part of Mexico following the Mexican War of Independence. In 1848, the expanding United States acquired the town along with the rest of California as a result of defeating Mexico in the Mexican–American War. Santa Barbara transformed then from a small cluster of adobes into successively a rowdy, lawless Gold Rush era town; a Victorian-era health resort; a center of silent film production; an oil boom town; a town supporting a military base and hospital during World War II; and finally it became the economically diverse resort destination it remains in the present day. Twice destroyed by earthquakes, in 1812 and 1925, it was rebuilt in a Spanish Colonial style.