Flagstaff is the county seat of Coconino County, Arizona, in the southwestern United States. As of the 2020 United States census, the city's population was 76,831. Flagstaff is the principal city of the Flagstaff metropolitan area, which includes all of Coconino County, and has a population of 145,101. Flagstaff lies near the southwestern edge of the Colorado Plateau and within the San Francisco volcanic field, along the western side of the largest contiguous ponderosa pine forest in the continental United States. The city sits at about 7,000 feet and is next to Mount Elden, just south of the San Francisco Peaks, the highest mountain range in the state of Arizona. Humphreys Peak, the highest point in Arizona at 12,637 feet, is about 10 miles north of Flagstaff in Kachina Peaks Wilderness. The geology of the area includes exposed rock from the Mesozoic and Paleozoic eras, with Moenkopi Formation red sandstone having once been quarried in the city; many of the historic downtown buildings were constructed with it. The Rio de Flag river runs through the city, but only flows in response to rain or snowmelt.