Flag of Zanzibar yellow cloves was added to the flag. On 12 January 1964, John Okello overthrew the Sultan of Zanzibar and adopted a black-yellow-blue tricolour as the flag of the People's Republic of Zanzibar and Pemba. On 29 January, the country's flag was changed to a blue-black-green tricolour with a thin white stripe at the hoist. This design, which was based on the flag of the Afro-Shirazi Party, was the longest-lived of the post-independence flags and eventually formed the basis for the current flag. On 26 April 1964, Zanzibar united with Tanganyika to form the new country of Tanzania and Zanzibar's old
Sultanate of Zanzibar the name "Republic of Kenya". On 10 December 1963, the Protectorate that had existed over Zanzibar since 1890 was terminated by the United Kingdom. The United Kingdom did not grant Zanzibar independence, as such, because the UK had never had sovereignty over Zanzibar. Rather, by the Zanzibar Act 1963 of the United Kingdom, the UK ended the Protectorate and made provision for full-self government in Zanzibar as an independent country within the Commonwealth. Upon the Protectorate being abolished, Zanzibar became a constitutional monarchy under the Sultan. Sultan Jamshid bin Abdullah was overthrown a month later during the Zanzibar Revolution. Jamshid