The shooting happened at Olive and Hanford Armona Road in Hanford around 7:30 p.m. Wednesday night.
Police say the two men were walking on Hanford Armona Road when someone in a car approached them. Officers say the two men tried to run, but shots were fired from inside the car.
One man was wounded in the chest, while the other was shot in the leg.
Police said the shooting appears to be gang related. Both men are expected to survive.