The Dervishes led by Muhammad Abdullah Hassan were against the protection agreements signed with Britain with the Somali sultans. Dervishes waged successive wars against the British colonists between 1900. The Dervishes were finally defeated in the 1920 Somaliland Campaign. On 26 June 1960, the protectorate gained independence as the State of Somaliland, before five days later uniting with the Trust Territory of Somaliland, following its separate independence, to form the Somali Republic.