The Alaskan current brings down the cold water, the marine layer encounters the colder waters from Alaska, it cools to its dewpoint, and hello fog. Add to the mix a difference in pressure, a hot Central Valley, the prevailing winds, a funnel called the Golden Gate, and before you can say "Bob's your Uncle," Mr. Fog shows up.