Rancho San Pedro, Santa Margarita y Las Gallinas was a 21,679-acre (87.73 km2) Mexican land grant in present day Marin County, California given in 1844 by Governor Manuel Micheltorena to Timothy Murphy (Timoteo Murphy). Las Gallinas means "the hens" in Spanish. The grant extended from east of Nicasio, California, south east along the Lucas Valley, California, then along Miller Creek to Las Gallinas and the San Pablo Bay.
Timothy Murphy (1800–1853 ) born in County Wexford, Ireland worked at the Lima branch of the Hartnell and Company meatpacking house in 1828. He moved to Monterey, but the local branch of Hartnell and Company closed shortly after he arrived. In 1837, Murphy was administrator of Mission San Rafael, and later, served as alcalde and juez de paz at San Rafael. In 1844, Murphy was granted five square leagues in three adjoining ranchos: Rancho San Pedro, Rancho Santa Margarita and Rancho Las Gallinas. Timothy Murphy suffered a reversal of fortune in 1849, when he was swindled out of the proceeds from the sale of meat from his ranch, by John B. Steinberger. Thereafter, things continued to decline for him, until his death in 1853, of a burst appendix.
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, acclaim for Rancho San Pedro, Santa Margarita y Las Gallinas was filed with the Public Land Commission in 1852, and the grant was patented to Timothy Murphy in 1866.