Heavy fog is believed to have caused a 35-vehicle pileup Saturday morning on Interstate 5 west of Bakersfield, California, authorities said.