Phoenix, the largest city in the state, is the capital. Tucson is the state’s second largest city, located 110 miles (180 km) southeast of the Phoenix metropolitan area. The Tucson metropolitan area crossed the one-million-resident threshold in early 2007. It is home to the University of Arizona. Yuma, center of the third largest metropolitan area in Arizona, is located near the borders of California and Mexico. It is one of the hottest cities in the United States with the average July high of 107 degrees Fahrenheit. The city also features sunny days about 90 percent of the year and attracts many winter visitors from all over the United States. Flagstaff is the largest city, and at nearly 7000 ft elevation, is a stark contrast to the desert regions. Flagstaff is home to 57,391 residents and the main campus of Northern Arizona University.