The few short years of the Gold Rush changed California's population and environment dramatically. Ethnic diversity grew as people from all over the world poured into the state, ignoring numerous dangers and the ever-present risk of earthquakes to follow their dreams of striking gold. This sudden influx, and the gold mining industry in general, had a significant impact on the environment and contributed to the rapid growth of cities throughout the state. The state's legal infrastructure lagged behind this growth, however, and the lawless atmosphere of the gold mining communities led to a growing problem of murder and mayhem. Law-abiding citizens began to see the need to strengthen existing legal and judicial institutions to ensure a more peaceful approach to everyday life.