California has a long history and was originally inhabited by many Native American tribes like the Chumash and Maidu who spoke different languages. The first Europeans to arrive were Juan Rodriguez Cabrillo in 1542 and Sir Francis Drake in 1579. Spain began colonizing California in 1769 through building missions to convert Native Americans to Catholicism. After Mexico gained independence from Spain in 1821, California became a Mexican province. American settlers revolted against Mexico and formed the short-lived Bear Flag Republic in 1846 before California joined the United States later that year after the Mexican-American War.