We have developed a simple yet versatile method for aligning liquid crystals (LCs) by using magnetic-field oriented single-walled carbon nanotubes (SWNTs) that were modified with magnetic particles. A high degree of homeotropic/planar LC alignment was achieved by SWNTs being exposed to a very low strength magnetic field, combined with strong pi-pi interactions between the biphenyl group in the LCs and the wall of the SWNTs.