The ectocervix is non-keratinising stratified squamous epithelium. It is resistant to low vaginal pH.
The endocervix is mucin-secreting columnar epithelium. It undergoes squamous metaplasia when exposed to vaginal pH.
If cells are infected with HPV then physiological metaplastic change can become disturbed such that the cells undergo dysplastic change: