San Francisco Bay is a shallow , productive estuary through which water draining about forty percent of California , flowing in the Sacramento and San Joaquin rivers from the Sierra Nevada mountains and Central Valley , enters the Pacific Ocean . San Francisco Bay is a shallow , productive estuary through which water draining from approximately forty percent of California , flowing in the Sacramento and San Joaquin rivers from the Sierra Nevada mountains , enters the Pacific Ocean .