Sebastopol became known as the "Gravenstein Apple Capital of the World". The apple industry brought a steady rural prosperity to the town. In 1890 the San Francisco and North Pacific Railroad connected Sebastopol to the national rail network. The town was incorporated in 1902, with schools, churches, hotels, canneries, mills, wineries, and an opera house to its credit. The 1906 earthquake reduced most of these early buildings to rubble (Sebastopol is only seven miles from the city of Santa Rosa, the worst-hit town in the 1906 earthquake), but as elsewhere in the county, the town was rebuilt.