The para-Dimethylaminobenzaldehyde reacts with indole present in the medium to form a red rosindole dye. The isoamyl alcohol forms a complex with rosindole dye, which causes it to precipitate. The remaining alcohol and the precipitate then rise to the surface of the medium.