The acidity of phenol is due to the resonance stabilization of the phenoxide ion formed after losing a proton. The negative charge is delocalized over the benzene ring, making the conjugate base more stable.