Creating covalent bondings between the treating agent and the fibre