Modesto, officially the City of Modesto, is the county seat and largest city of Stanislaus County, California, United States. With a population of approximately 201,165 at the 2010 census, it is the 18th largest city in the state of California and forms part of the Modesto–Merced combined Statistical Area. The Modesto Census County Division, which includes the cities of Ceres and Riverbank, had a population of 312,842 as of 2010. Modesto is located in the Central Valley, 90 miles (140 km) north of Fresno, 40 miles (64 km) north of Merced, California, 92 miles (148 km) east of San Francisco, 68 miles (109 km) south of the state capital of Sacramento, 66 miles (106 km) west of Yosemite National Park, and 24 miles (39 km) south of Stockton. Modesto has been honored as a Tree City USA numerous times. It is surrounded by rich farmland; Stanislaus County ranks sixth among California counties in farm production. Led by milk, almonds, chickens, walnuts, and corn silage, the county grossed nearly $3.1 billion in agricultural production in 2011. The farm-to-table movement plays a central role in Modesto living as in the Central Valley.