Agua Fria, a mining town in California, became the seat of justice of Mariposa County when the State Legislature divided the state into 27 counties on February 18, 1850. At that time Mariposa County comprised one-fifth of the entire state and included what are now Mariposa, Tulare, Merced, Fresno, Kern, Madera, and portions of Los Angeles, San Bernardino, Inyo, Mono, and San Benito Counties. As a result of an election on September 3, 1851, Mariposa became the seat of government on November 10, 1851. Agua Fria now overlays the town's main street. On June 22, 1866, the entire town, about 75 buildings, was consumed by fire, and because the residents did not own the land, it was never rebuilt.