 Low water flow caused an increase in salinity, which resulted in the intrusion of salt in some parts of the valley, and in San Francisco Bay.The Keswick project was primarily intended for irrigation purposes, but it became a multipurpose project for flood control, improvement in navigation of the Sacramento River, the supply of water to domestic and industrial users, the generation of electric power, the conservation of fish and wildlife, the creation of opportunities for recreation, and the enhancement of water quality.The California legislature enacted laws to deal with the state's water scarcity, and adopted a law establishing riparian water rights.