Quaternary ammonium compounds were derived from tallow and coconut oil. Amides were prepared by reacting the coconut oil and tallow with amines (triethylamine and trimethylamine). Then by reaction of amide with alkyl halide (1-bromo butane, 1-chlorobutane and iodoethane) compounds were prepared. The purity of these compounds was checked by chemical analysis and IR spectrometry. The activities of these compounds were checked on cane juice for its clarification.