William Petrie (1747 – 27 October 1816) was a British officer of the East India Company in Chennai (formerly Madras) during the 1780s, and was Governor of Prince of Wales Island (Penang Island) from 1812 to 1816. An amateur astronomer, Petrie helped found the first modern observatory outside Europe, the Madras Observatory.