William Hastie was born on 7 July 1842 at Wanlockhead in Dumfriesshire, Scotland. He entered the University of Edinburgh in 1859 and graduated with an M.A. in Philosophy in the First Division in 1867 and further with a B.D. in 1869. He further studied at the University of Glasgow in 1870 and 1871, under John Caird, Professor of Divinity. Hastie studied further in the Netherlands and Germany and became fluent in German. In 1875, he decided to become a probationer in the Church of Scotland so that he could teach abroad. Three years later, he was on a ship bound from Liverpool to Calcutta.
India
In 1878 Hastie was appointed principal of the General Assembly's Institution in Calcutta. According to a legend, Narendranath Datta was first introduced to Indian mystic Ramakrishna in a literature class, given by Hastie. While lecturing on William Wordsworth's poem, The Excursion, Hastie suggested to his students that they should visit Ramakrishna of Dakshineswar to understand the true meaning of the phenomenon of "trance". Rajagopal Chattopadhyaya attributes the legend to a classmate of Narendranath, Haramohan Mitra. Hastie must have inspired his students, because several went on to find out more about meditation. Hastie showed an interest in his students. For instance, despite Narendranath Datta's chain-smoking, he remarked, "Narendra Nath Dutta is really a genius. I have traveled far and wide, but have never yet come across a lad of his talent and possibilities, even in the German universities amongst philosophy students". Hastie was ambitious, planning to build his own mission centre, but he fell out with his own employer's missionaries. When this became public knowledge, the missionaries were the ones supported in their complaints. Hastie then published an ill-timed collection of his letters under the title "Hindu Idolatry and the Enlightened Englishmen", which annoyed the Hindu community and caused someone to assault him. Hastie was described as a stubborn idealist and his discussions and objections to blind faith, bigotry, and rituals were not well received. His objections to rituals were taken up by Bankim Chatterjee and became a public argument.
Libel charge and imprisonment
In parallel with his other troubles, Hastie fell out with a Miss Pigot who was employed by the Scottish Ladies Association. One source claims that it was Hastie who was trying to expose the poor management and morals of Pigot of the Zenana Mission School and Orphanage. Hastie claimed that the Eurasian Pigot was illegitimate and she was having an affair both with a native Christian teacher at the Free Church college and a Professor Wilson at his college. Hastie and Pigot both went to court, with Hastie defending himself on libel charges by calling on supportive witnesses. The case was sent to appeal, and eventually Hastie and his witnesses were rebuked. He unsuccessfully appealed to the church in Scotland. He had already been dismissed in 1884 and had no way of covering the fine and costs that the court levied against him. As a result, Hastie was imprisoned in Calcutta in 1885 and was released only when he went bankrupt. Contemporary commentators have put the case down to Hastie's sexual jealousy, as he suspected one of Pigot's partners - Kalicharan Bannerjee - of writing articles that disagreed with Hastie's theology. The case has been studied by Professor Kenneth Ballhatchet in his book on race, sex, and class. The secular Indian and the English Press sided with Miss Pigot, but the Indian missionary establishment's views were summarised by Rev. J. Hudson in the "Harvest Field", where he discussed the case and concluded that Pigot was not immoral but "lacking in female delicacy". Hudson interwove this observation with hints of Pigot's poor management. Later analysis sees Hastie as a "classic case of sexual jealousy" being projected from his intellectual rivalry onto sexual rivalry. Hastie returned to Wanlockhead in 1885 to work as a translator.
Final years
In 1892 Hastie was chosen to deliver the Croall Lectures at the University of Edinburgh. The University also awarded him the honorary degree of DD on 13 April 1894. In 1895, Hastie succeeded William Purdie Dickson as the professor of divinity at University of Glasgow. In 1900 he produced the first English translation of the Allgemeine Naturgeschichte und Theorie des Himmels by Immanuel Kant. Hastie described the work "as the most wonderful and enduring product of genius." Hastie died in Edinburgh on 31 August 1903 and was buried in his hometown.