The above reaction represent the case of AISN (aromatic nucleophilic substitution) which occurs through the formation of benzyne. For the formation of benzyne intermediate, it is essential that an H should be available in on ortho position to thehalogen.