Merced County sheriff's officials say the shooting happened around seven o'clock Friday night near Pinedale and Peppertree in Merced.
Deputies say a man was out walking when he was approached by a person dressed in all black. The man who approached fired several shots.
It's not clear how many times the victim was struck. He was unconscious when deputies arrived. He's being treated at a hospital in Modesto.