Around this time, he became a friend of the writer and liberal politician José de Alencar, who taught him English. From English literature, he was influenced by Laurence Sterne, William Shakespeare, Lord Byron and Jonathan Swift. He learned German years later and in his old age, Greek. He was invited by Bocaiúva to work at his newspaper "Diário do Rio de Janeiro" in 1860. Machado had a passion for theater and wrote several plays for a short time; his friend Bocaiúva concluded: "Your works are meant to be read and not played." He gained some notability and began to sign his writings as J. M. Machado de Assis, the way he would be known for posterity: Machado de Assis. He established himself in advanced Liberal Party circles by taking stands in defense of religious freedom and Ernest Renan's controversial "Life of Jesus" while attacking the venality of the clergy.