The anchoring energy of liquid crystals was shown to be tunable by surface nanopatterning of periodic lines and spaces. Both the pitch and height were varied using hydrogen silsesquioxane negative tone electron beam resist, providing for flexibility in magnitude and spatial distribution of the anchoring energy. Using twisted nematic liquid crystal cells, it was shown that this energy is tunable over an order of magnitude. These results agree with a literature model which predicts the anchoring energy of sinusoidal grooves.