Captain William Keeling was the first European to see the islands, in 1609, but they remained uninhabited until the nineteenth century, when they became a possession of the Clunies-Ross Family. Slaves were brought to work the coconut plantation from Indonesia, the Cape of Good Hope and East Asia by Alexander Hare who had taken part in Stamford Raffles' takeover of Java in 1811. A Scottish merchant seaman called Captain John Clunies-Ross, who had also served under Raffles in the takeover, set up a compound and Hare's severely mistreated slaves soon escaped to work under better conditions for Clunies-Ross. 