The Sultans of Zanzibar were the rulers of the Sultanate of Zanzibar, which was created on 19 October 1856 after the death of Said bin Sultan, who had ruled Oman and Zanzibar as the Sultan of Oman since 1804. The Sultans of Zanzibar were of a cadet branch of the Al Said Dynasty of Oman. In 1698, Zanzibar became part of the overseas holdings of Oman, falling under the control of the Sultan of Oman. In 1832, or 1840, Said bin Sultan moved his capital from Muscat in Oman to Stone Town. He established a ruling Arab elite and encouraged the development of clove plantations, using the island's slave labour. Zanzibar's commerce fell increasingly into the hands of traders from the Indian subcontinent, whom Said encouraged to settle on the island. After his death in 1856, two of his sons, Majid bin Said and Thuwaini bin Said, struggled over the succession, so Zanzibar and Oman were divided into two separate principalities; Thuwaini became the Sultan of Oman while Majid became the first Sultan of Zanzibar. During his 14-year reign as Sultan, Majid consolidated his power around the East African slave trade. His successor, Barghash bin Said, helped abolish the slave trade in Zanzibar and largely developed the country's infrastructure. The third Sultan, Khalifa bin Said, also furthered the country's progress toward abolishing slavery. Until 1886, the Sultan of Zanzibar controlled a substantial portion of the east African coast, known as Zanj, and trading routes extending further into the continent, as far as Kindu on the Congo River. That year, the British and Germans secretly met and re-established the area under the Sultan's rule. Over the next few years, most of the mainland possessions of the Sultanate were taken by European imperial powers. With the signing of the Heligoland-Zanzibar Treaty in 1890 during Ali bin Said's reign, Zanzibar became a British protectorate. In August 1896, Britain and Zanzibar fought a 38-minute war, the shortest in recorded history, after Khalid bin Barghash had taken power after Hamid bin Thuwaini's death. The British had wanted Hamoud bin Mohammed to become Sultan, believing that he would be much easier to work with. The British gave Khalid an hour to vacate the Sultan's palace in Stone Town. Khalid failed to do so, and instead assembled an army of 2,800 men to fight the British. The British launched an attack on the palace and other locations around the city. Khalid retreated and later went into exile. Hamoud was then installed as Sultan. In December 1963, Zanzibar was granted independence by the United Kingdom and became a constitutional monarchy under the Sultan. Sultan Jamshid bin Abdullah was overthrown a month later during the Zanzibar Revolution. Jamshid fled into exile, and the Sultanate was replaced by the People's Republic of Zanzibar and Pemba. In April 1964, the republic was united with Tanganyika to form the United Republic of Tanganyika and Zanzibar, which became known as Tanzania six months later.
Majid bin Said, the youngest son of Said bin Sultan, became the Sultan of Oman after his father's death on 19 October 1856. However, Majid's elder brother, Thuwaini bin Said, contested the accession to power. Following a struggle over the position, it was decided that Zanzibar and Oman would be divided into two separate principalities. Majid would rule as the Sultan of Zanzibar while Thuwaini would rule as the Sultan of Oman.
From 1886, the United Kingdom and Germany had plotted to obtain parts of the Zanzibar Sultanate for their own empires. In October 1886, a German-British border commission established the Zanj as a 10 nautical mile wide strip along most of the coast of East Africa, stretching from Cape Delgado to Kipini, including Mombasa and Dar es Salaam. Over the next few years, almost all of these mainland possessions were lost to European imperial powers.
Hamoud bin Mohammed, the son-in-law of Majid bin Said, was supposed to become the Sultan of Zanzibar after Hamid bin Thuwayni's death. However, Khalid bin Bhargash, son of Bargash bin Said, seized the Sultan's palace and declared himself the ruler of Zanzibar. The British, who had supported Hamoud, responded on 26 August by issuing an ultimatum to Khalid and his men to leave the palace within one hour. After he refused, the Royal Navy began firing at the palace and other locations in Stone Town. Khalid assembled an army of 2,800 and stationed them all around the town. Thirty-eight minutes later, Khalid retreated to the German consulate, where he was granted asylum. This conflict, known as the Anglo-Zanzibar War, was the shortest war in recorded history. Khalid later went into exile in Dar es Salaam until being captured by the British in 1916.
After attending the coronation of King George V, Ali decided to abdicate from the throne to live in Europe.
Jamshid bin Abdullah overthrown on 12 January 1964 during the Zanzibar Revolution. Jamshid managed to flee to Great Britain with his family and ministers.