The presence of the hydroxyl group in phenol causes it to be more nitrated. The ortho- and para-positions in the benzene ring become electron-rich due to the resonance effect induced by the –OH group, activating it towards electrophilic substitution process. As a result, nitration, an aromatic electrophilic substitution, occurs at a high electron density location.