San Bernardino, California, was named in 1810.

Earliest inhabitants San Bernardino's earliest known inhabitants were Serrano Indians (Spanish for "people of the mountains") who spent their winters in the valley, and their summers in the cooler mountains. They were known as the "Yuhaviatam" or People of the Pines. They have lived in the valley since approximately 1000 B.C. They lived in small brush covered structures. At the time the Spanish first visited the valley, approximately 1500 Serranos inhabited the area. They lived in villages of ten to thirty structures that the Spanish named rancherías.

The Tongva Indians also called the San Bernardino area Wa'aach in their language.Munro, Pamela, et al. Yaara' Shiraaw'ax 'Eyooshiraaw'a. Now You're Speaking Our Language: Gabrielino/Tongva/Fernandeño. Lulu.com: 2008.

Spanish California Spanish Military Commander of California Pedro Fages probably entered San Bernardino Valley in 1772. Missionary priest Father Francisco Garcés entered the valley in 1774, as did the de Anza Expedition, though not in present-day San Bernardino but further south.

The traditional (since there is a dispute as to the following events) founding and naming of San Bernardino is that Padre Francisco Dumetz, a Franciscan priest, made a trip from the Mission San Gabriel Arcángel to the San Bernardino Valley on May 20, 1810, the feast day of Saint Bernardino of Siena during California's mission period. That year Politana, the first Spanish settlement in the San Bernardino Valley, was established by the Mission San Gabriel as a mission chapel and supply station for travelers on the road into California from Sonora. It was located at the ranchería of the Guachama Indians who lived on the bluff now known as Bunker Hill.

Mission California In 1819, the San Gabriel Mission created an estancia, the San Bernardino de Sena Estancia, at an Indian rancheria called Guachama, the site of which is in modern-day Redlands, California, and Rancho San Bernardino. A group of adobe buildings were constructed around 1830. The Mill Creek zanja, an irrigation ditch from Mill Creek to the site, was dug by local Indians for the Franciscans. The site was closed when Governor Figueroa closed down the mission system in 1834. The site would later be known as "Old San Bernardino." Today, the site is historically known as the "San Bernardino Asistencia."

Jedediah Strong Smith entered the valley with 15 trappers in late November 1826 on the way to Mission San Gabriel, crossing over the San Bernardino Mountains by the Mojave Trail route over Monument Peak.

The expedition of Antonio Armijo first established the trade of the Old Spanish Trail between Nuevo Mexico and Mission San Gabriel in Alta California in 1829–1830. Their route entered the San Bernardino Valley by a route Armijo called "Cañon de San Bernardino" from the upper Mojave River west through Cajon Pass and down Crowder Canyon and then Cajon Canyon. This route was known to the vaqueros of the San Bernardino de Sena Estancia who had come to the aid of Armijo's party with food. This route ran along the course of Crowder Canyon to its mouth at Cajon Canyon and down to the mouth of the canyon at Sycamore Grove.Edward Leo Lyman, Overland Journey from Utah to California: Wagon Travel from the City of Saints to the City of Angels, University of Nevada Press, 2008.

Kit Carson and a group of trappers went through the Cajon Pass in 1830. The Cajon Pass was used by many early explorers, settlers, and traders going to places further west.

Rancho period After the Mission system was dismantled by the Mexican government in 1833, several prominent Southern Californians attempted to acquire Rancho San Bernardino. In 1837, Antonia Pico and Andres Pico made an application for the land, but it was rejected. Ygnacio Palomares, applied for the right to graze cattle in the eastern San Bernardino Valley. Governor Juan Bautista Alvarado rejected the application. Instead, the governor approved a settlement plan by Antonio Maria Lugo. Lugo's proposal was to colonize the San Bernardino area, listing 27 prospective settlers.

In 1839, the Lugo's colonization permit was granted for 18 leagues of land. In the same year, the Lugo Family built an adobe house where the current county courthouse sits today.

The plan for colonization was not successful. In 1841, Antonio Lugo prepared another petition. This time, it requested a land grant in the name of three of his sons, José del Carmen Lugo, José Maria Lugo, Vicente Lugo, and José del Carmen's friend, Diego Sepulveda.

On June 21, 1842, Rancho San Bernardino was granted to Antonio Maria Lugo, his sons and his nephews, who grazed approximately 4000–6000 cattle in the area. The grant included a large part of the San Bernardino valley, in all. Lugo's adobe would later become Amasa M. Lyman's house. His brother repaired the Estancia and lived there. A community that grew up astride the Santa Ana River northeast of current-day Redlands would be known as Lugonia. It lost its identity with the November 1888 incorporation of Redlands.

By offering land, Lugo convinced a group of settlers from Abiquiu, New Mexico, to settle on the rancho at Politania and defend it against Indian raiders and outlaws preying on the herds of the Ranchos in Southern California. These emigrants first colonized Politana on the Rancho San Bernardino in 1842. Don Lorenzo Trujillo brought the first colony of settlers from New Mexico to settle on land provided by the Lugos about one half mile south of the Indian village of La Politana. These colonists included William Workman, John A. Rowland (later owners of Rancho La Puente) and Benjamin Davis Wilson. After remaining about two years at La Politana, Don Lorenzo, and four other families of colonists were persuaded move to 2,000 acres of land on the east side of the Santa Ana River, on the northern boundary of the Rancho Jurupa offered to them by Don Juan Bandini. This village was known as "La Placita de los Trujillos", later called La Placita.

In 1843 a second party of colonists, commanded by Don Jose Tomas Salazar, arrived at La Politana. Among the settlers of this second colony were Louis Rubidoux and Christobal Slover, both married to Mexican women. In 1845, the Salazar colonists too moved to the Santa Ana River, one mile northeast of La Placita and there founded the village known as Agua Mansa. To replace the New Mexicans as guardians of their herds, the Lugos brought Mountain Cahuilla tribesmen under their leader, Juan Antonio, to settle in Politana. They remained there until 1851, when they killed all but one of the Irving Gang in San Timoteo Canyon. These were American brigands that had raided the Ranchos in the valley and were hunted down on orders of the local justice of the peace. Due to the ill feeling among the American population resulting from this incident, shortly afterward the Cahuilla moved east to a new rancheria at Saahatpa in the San Gorgonio Pass near Banning, California. Caballeria y Collell, Juan, HISTORY OF SAN BERNARDINO VALLEY, from the padres to the pioneers, 1810–1851, Times-Index Press, San Bernardino, Cal., 1902.

Also in 1843, Michael White (also known in Spanish as Miguel Blanco), a Mexican citizen of English origin, was granted Rancho Muscupiabe, named after the Serrano village Amuscupiabit, "Place of little pines." Michael White built a house overlooking the Cajon Pass, but Native Americans from the desert stole his grazing stock, and he abandoned the Rancho after nine months.

Mormon San Bernardino

In 1847, after hostilities of the Mexican–American War had ended, the Mormon Battalion of the U.S. Army occupied San Diego and Los Angeles. A detachment of the Los Angeles troops, led by Captain Jefferson Hunt was stationed at the southern end of the Cajon Pass to protect Mexican ranchos from Indian raids. The Battalion had started in Council Bluffs, Iowa, on July 10, 1846, and arrived in San Diego on January 29, 1847. Company C was dispatched to guard the Cajon Pass. On furloughs, Captain Hunt and others worked for Rancho Santa Ana del Chino owner Isaac Williams. After the War, the Battalion mainly went to Utah. Many Battalion troops returned to families in Utah via San Francisco and the Sacramento area. A group led by Hunt traveled to Salt Lake City by way of the Old Spanish Trail through the Cajon Pass with which they were so familiar.

After rejoining his family in Utah, Hunt got the contract for mail delivery between Salt Lake and Los Angeles. He also organized several cattle drives, buying stock from ranchos owners to deliver to hungry Mormons in Utah. It was during this time that Hunt started preliminary negotiations with Williams with the idea of buying Rancho del Chino.

Mormon leader Brigham Young saw Southern California as a supply source for Utah, and as an immigration and mail stop between Salt Lake City and San Pedro, California. A group of almost 500 Mormons left Utah for California in 1851. They found abundant water in the valley, along with willows, sycamores, cottonwood and mustard, as well as the Yucca plant. The Mormon contingent was led by Captain David Seely (later first Stake President), Captain Jefferson Hunt and Captain Andrew Lytle, and included Apostles Amasa M. Lyman and Charles C. Rich. They first made camp at the Sycamore Grove, about southeast of the present Glen Helen Regional Park. They stayed until the sale of Rancho San Bernardino could be arranged.

In September 1851, Lugo sold the Rancho to members of the Church of Jesus Christ of Latter-day Saints (Mormons). The Rancho included most of modern San Bernardino among other areas, though part of the northern areas of the City were part of Rancho Muscupiabe. The price for was $77,000 with $7,000 down.

The Mormons built Fort San Bernardino at the site of the present county courthouse. Inside the fort, they had small stores, and outside, they grew wheat and other crops. They later moved outside the walls of the fort when feared attacks did not materialize. The Mormon Council House was built in 1852. It was used as the post office, school, church, and was the county courthouse from 1854 to 1858.

On November 7, 1852, Colonel Henry Washington, deputy surveyor (by contract with the United States Surveyor General for California) surveyed the San Bernardino Base Line and Meridian from a point just west of Mount San Bernardino, at an elevation of , east of present-day Highland. The Base and Meridian lines serve as the initial surveying point (known as the point of beginning) for all of Southern California.

San Bernardino County was formed from Los Angeles County in 1853 based on Assemblyman Jefferson Hunt's bill.

In 1853, the Mormons laid out the current street grid system, one mile (1.6 km) square, which is based upon the grid layout of Salt Lake City. Each block was . The plan was laid out by Henry G. Sherwood, and assisted by Fred T. Perris. The east–west streets were numbered, from First Street to Ninth Street. The north–south streets were named Kirtland Street (later "A" street, then Sierra Way); Camel Street (later "B" Street, then Mountain View Avenue; Crafton Street (later "C" Street, then Arrowhead Avenue); Utah Street (later "D" Street); Salt Lake Street (later "E" Street); California Street (later "F" Street); Independence Street (later "G" Street"); Nauvoo Street (later "H" Street); and Far West Street (later "I" Street). The Mormons also built a road in 1853 to Los Angeles. The Mormons were responsible for the school system, creating Warm Springs, a school still in use today, as well as a school at the present site of Pioneer Park.