Aniline, an organic compound with the formula C6H5NH2, is a vital chemical in the industrial…