King of the Cocos Islands was the title of 5 generations of men of the Clunies-Ross family from 1827 until 1978, who settled the Cocos (Keeling) Islands. The title was initially given by the press in 1903 but later self-proclaimed. John Clunies-Ross was the first, a sea captain from Scotland who had established a settlement on the islands in 1827.
John Clunies-Ross was a merchant originating from the Shetland Islands. In 1813 he was at Timor as Third Mate on board the whaler Baroness Longueville when he received the opportunity to become captain of the brig Olivia, which opportunity he took.
Reportedly he first cruised the waters of the then uninhabited Cocos (Keeling) Islands in 1825. After surveying them he moved his family to live on one of the islands in 1827. Only Joshua Slocum used different dates, when he wrote that "John Clunis-Ross, who in 1814 touched [the island] in the ship Borneo on a voyage to India", nailed up a Union Jack with plans to settle in the future and "[..] returned 2 years later with his wife and family". He planted "hundreds of coconut palms and brought in Malay workers to harvest the nuts", building a business by selling copra. In the beginning, Javanese convicts were used as laborers and "crime of all kinds was rife", before "getting rid of the criminal class and obtaining a better type of Malay coolie." According to a 1903 article in the The Timaru Herald Ross "...[ran] his little colony on model lines and succeeded beyond expectation" and Charles Darwin mentioned after his 1836 visit with the H.M.S Beagle that he "found the natives in a state of freedom". However the article left out the sentence that immediately followed :"but in most other points they are considered as slaves". Ross traded with Dutch vessels going to Dutch ports on Java and Sumatra and became a naturalised Dutch subject; He had approached both the British and the Dutch government for annexation but neither had responded.