Initially toluene reacts with chlorine to show free radical substitution reaction.
In the next step nucleophilic substitution reaction takes place due to the treatment with aqueous sodium hydroxide and finally benzoic acid is formed by the removal of water.