How to obtain pure aniline from a mixture of phenol and aniline?
First dissolve phenol and aniline in diethyl ether and add excess HCl solution .
Then aniline will react with HCl and dissolve in water layer.
Easily remove organic layer.

Take the water layer and add excess NaOH to it and aniline will be precipitated.