During the 17th and 18th centuries, various Spanish explorers passed through coastal Southern California and claimed the area for Spain. In 1769, the Spanish government began an effort to bring what they called Alta California under their control and introduce Christianity to native peoples through the construction of missions. It was not until 1772 when the military governor of Alta California, Pedro Fages, became the first European known to reach the San Bernardino Mountains. Although the original purpose of his expedition was to pursue deserters from the Spanish army, he ended up venturing into not just the San Bernardinos but also the San Jacinto Mountains, the Mojave Desert, and eventually north into the Central Valley.