The use of chemical nanopatterns through nanoimprint lithography ato align a nematic liquid crystal (LC) in LC cells was described. It was found that the ratio of areas with different surface-aligning helped in the polar orientation of LC, while the azimuthal orientation was determined by the direction of the chemical patterns. The deviation was found to occur along the lines, demonstrating the average azimuthal orientation of the LC over the cell thickness along the boundary lines. The results show that the chemical patterns with different chemistry and more complex structures can be applied to control all other LC properties, including anchoring conditions and switching behaviors.