What are the functions of HCl?

Some of the important functions of HCl are (i) Kills ingested bacteria. (ii) Provides acidic medium for protein digestion. (iii) Converts inactive pepsinogen and pro-rennin into active pepsin and rennin respectively.