Hydrochloric acid is secreted by the parietal cells of the gastric glands, located on the wall of the fundus of the stomach.