Rancho San Ramon was a 8,917-acre (36.09 km2) Mexican land grant in the northern San Ramon Valley of present-day Contra Costa County, California. Rancho San Ramon (Amador) was adjacent in the southern San Ramon Valley.
It was given in 1833 by Governor Jose Figueroa to Mariano Castro and Bartolome Pacheco. Governor Figueroa granted Castro and Pacheco two square leagues of San Ramon Valley from the crest of the western ridge to the crest of the east. Castro had the northern square league, and Pacheco the southern.
Bartolome Pacheco (1766–1839), the son of Juan Salvio Pacheco (1729–1777) and Maria Carmen del Valle, came to San Francisco with his family in 1776 with the Anza Expedition. Bartolome Pacheco joined the military company of the Presidio of San Francisco. He was present at the dedication of Mission San José in 1797, and retired after 20 years as a soldier. Mariano Castro was his nephew (Bartolome Pacheco's sister, Barbara Pacheco de Castro, was Mariano Castro’s mother).
In the 1830s, the San Ramon Valley was still wild country, and Pacheco and Castro received permission to live out of the valley. Mariano Castro and his family lived in the Pueblo of San José. Bartolome Pacheco lived in the San Mateo area and, when he died in 1839, his son Lorenzo Pacheco became the owner. Lorenzo Pacheco and Rafaela Soto were married in 1837 and lived in Pueblo of San Jose. When Lorenzo died in 1846, Rafaela Soto de Pacheco and her four small children inherited the Pacheco square league of the Rancho San Ramon.
With the cession of California to the United States following the Mexican-American War, the 1848 Treaty of Guadalupe Hidalgo provided that the land grants would be honored. As required by the Land Act of 1851, a claim for Rancho San Ramon was filed with the Public Land Commission in 1852. The notorious American land attorney Horace Carpentier "helped" Rafaela Soto de Pacheco with her title challenges, and ended up owning the entire Pacheco-Castro rancho land. The grant was patented to Horace W. Carpentier in 1866.
- Ogden Hoffman, 1862, Reports of Land Cases Determined in the United States District Court for the Northern District of California, Numa Hubert, San Francisco
- Beverly Lane, Ralph Cozine, 2005, San Ramon Valley: Alamo, Danville, and San Ramon, Arcadia Publishing, ISBN 978-0-7385-3081-9
- Diseño del Rancho San Ramon
- The Rancho of the San Ramon Valley by Beverly Lane
- The History of Contra Costa County, California, The Elms Publishing Co., Berkeley, California, 1917
- Hoover, Mildred B.; Rensch, Hero; Rensch, Ethel; Abeloe, William N. (1966). Historic Spots in California. Stanford University Press. ISBN 978-0-8047-4482-9.
- United States. District Court (California : Northern District) Land Case 73 ND
- Report of the Surveyor General 1844 - 1886 Archived 2009-05-04 at the Wayback Machine.