Lord Lytton was the Governor-General and Viceroy of India when the Vernacular Press Act, 1878 was enacted.