Admiral Sir James Sterling (28 January 179122 April 1865) was a Scottish naval officer and colonial administrator. His enthusiasm and persistence persuaded the British Government to establish the Swan River Colony and he became the first Governor and Commander-in-Chief of Western Australia. In 1854, when Commander-in-Chief, East Indies and China Station, Stirling on his own initiative signed Britain's first Anglo-Japanese Friendship Treaty. Throughout his career Stirling showed considerable diplomatic skill and was selected for a number of sensitive missions. Paradoxically, this was not reflected in his personal dealings with officialdom and his hopes for preferment received many rebuffs. Stirling also personally led the attack in Western Australia on a group of approximately seventy Bindjareb men, women and children now known as the Pinjarra massacre.