Admiral Sir James Stirling (28 January 1791 – 22 April 1865) was a British 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.
Stirling entered the Royal Navy at age 12 and as a midshipman saw action in the Napoleonic Wars. Rapid promotion followed and when he was 21 he received his first command, the 28-gun sloop HMS Brazen, and, in the War of 1812 between the US and the UK, seized two prizes. Brazen carried the news of the end of that war to Fort Bowyer and took part in carrying to England the British troops that had captured the fort. On return to the West Indies, Stirling made two surveys of the Venezuelan coast and reported on the strengths, attitudes and dispositions of the Spanish government and various revolutionary factions, later playing a role in the British negotiations with these groups.