Liquid crystal alignment layers of a high T-g polymer containing an azobenzene moiety are prepared by photofabrication of a surface relief grating (SRG). The interference pattern of a circular and linearly polarized Ar+ laser beam generated the surface relief grating and the morphology was detected by atomic force microscope. The optical anisotropy of the films was investigated by polarizing optical microscopy. The orientation of the optical axis of the film mainly depends on the direction of the initial polarization plane. Nematic liquid crystals were aligned parallel to the direction of the grating, but the pretilt angles of the liquid crystals were nearly zero. Irradiation with homogeneous linearly polarized light could also align liquid crystals, but this alignment capability was weaker than that of the SRG film.