government = tribal_kingdom
mercantilism = 0.1
primary_culture = swahili
religion = sunni
technology_group = indian
unit_type = sub_saharan
capital = 1196	# Kilwa
add_piety = -0.25

#Sultans of Kilwa
900.1.1 = {
	monarch = {
		name = "Ali I"
		dynasty = "Shrazi"
		birth_date = 870.1.1
		adm = 3
		dip = 5
		mil = 4
	}
}

930.1.1 = {
	heir = {
		name = "Muhammad"
		monarch_name = "Muhammad I"
		dynasty = "Shrazi"
		birth_date = 930.1.1
		death_date = 996.1.1
		claim = 95
		adm = 1
		dip = 2
		mil = 2
	}
}

960.1.1 = {
	monarch = {
		name = "Muhammad I"
		dynasty = "Shrazi"
		birth_date = 930.1.1
		adm = 1
		dip = 2
		mil = 2
	}
}

966.1.1 = {
	heir = {
		name = "Ali"
		monarch_name = "Ali II"
		dynasty = "Shrazi"
		birth_date = 966.1.1
		death_date = 1001.1.1
		claim = 95
		adm = 4
		dip = 5
		mil = 3
	}
}

996.1.1 = {
	monarch = {
		name = "Ali II"
		dynasty = "Shrazi"
		birth_date = 966.1.1
		adm = 4
		dip = 5
		mil = 3
	}
}

996.1.1 = {
	heir = {
		name = "Dawud"
		monarch_name = "Dawud I"
		dynasty = "Shrazi"
		birth_date = 971.1.1
		death_date = 1005.1.1
		claim = 95
		adm = 1
		dip = 3
		mil = 4
	}
}

1001.1.1 = {
	monarch = {
		name = "Dawud I"
		dynasty = "Shrazi"
		birth_date = 971.1.1
		adm = 1
		dip = 3
		mil = 4
	}
}

1001.1.1 = {
	heir = {
		name = "Khalid"
		monarch_name = "Khalid I"
		dynasty = "Shrazi"
		birth_date = 975.1.1
		death_date = 1007.1.1
		claim = 95
		adm = 1
		dip = 5
		mil = 2
	}
}

1005.1.1 = {
	monarch = {
		name = "Khalid I"
		dynasty = "Shrazi"
		birth_date = 975.1.1
		adm = 1
		dip = 5
		mil = 2
	}
}

1005.1.1 = {
	heir = {
		name = "Al-Hassan"
		monarch_name = "Al-Hassan I"
		dynasty = "Shrazi"
		birth_date = 977.1.1
		death_date = 1023.1.1
		claim = 95
		adm = 0
		dip = 4
		mil = 4
	}
}

1007.1.1 = {
	monarch = {
		name = "Al-Hassan I"
		dynasty = "Shrazi"
		birth_date = 977.1.1
		adm = 0
		dip = 4
		mil = 4
	}
}

1007.1.1 = {
	heir = {
		name = "Ali ibn Dawud"
		monarch_name = "Ali ibn Dawud I"
		dynasty = "Shrazi"
		birth_date = 993.1.1
		death_date = 1083.1.1
		claim = 95
		adm = 3
		dip = 2
		mil = 4
	}
}

1023.1.1 = {
	monarch = {
		name = "Ali ibn Dawud I"
		dynasty = "Shrazi"
		birth_date = 993.1.1
		adm = 3
		dip = 2
		mil = 4
	}
}

1053.1.1 = {
	heir = {
		name = "Ali ibn Dawud"
		monarch_name = "Ali ibn Dawud II"
		dynasty = "Shrazi"
		birth_date = 1053.1.1
		death_date = 1106.1.1
		claim = 95
		adm = 2
		dip = 5
		mil = 1
	}
}

1083.1.1 = {
	monarch = {
		name = "Ali ibn Dawud II"
		dynasty = "Shrazi"
		birth_date = 1053.1.1
		adm = 2
		dip = 5
		mil = 1
	}
}

1083.1.1 = {
	heir = {
		name = "Al-Hassan"
		monarch_name = "Al-Hassan II"
		dynasty = "Shrazi"
		birth_date = 1076.1.1
		death_date = 1129.1.1
		claim = 95
		adm = 1
		dip = 2
		mil = 5
	}
}

1106.1.1 = {
	monarch = {
		name = "Al-Hassan II"
		dynasty = "Shrazi"
		birth_date = 1076.1.1
		adm = 1
		dip = 2
		mil = 5
	}
}

1106.1.1 = {
	heir = {
		name = "Sulayman"
		monarch_name = "Sulayman I"
		dynasty = "Shrazi"
		birth_date = 1099.1.1
		death_date = 1131.1.1
		claim = 95
		adm = 3
		dip = 0
		mil = 1
	}
}

1129.1.1 = {
	monarch = {
		name = "Sulayman I"
		dynasty = "Shrazi"
		birth_date = 1099.1.1
		adm = 3
		dip = 0
		mil = 1
	}
}

1129.1.1 = {
	heir = {
		name = "Dawud"
		monarch_name = "Dawud II"
		dynasty = "Shrazi"
		birth_date = 1101.1.1
		death_date = 1170.1.1
		claim = 95
		adm = 0
		dip = 3
		mil = 5
	}
}

1131.1.1 = {
	monarch = {
		name = "Dawud II"
		dynasty = "Shrazi"
		birth_date = 1101.1.1
		adm = 0
		dip = 3
		mil = 5
	}
}

1140.1.1 = {
	heir = {
		name = "Sulayman"
		monarch_name = "Sulayman II"
		dynasty = "Shrazi"
		birth_date = 1140.1.1
		death_date = 1189.1.1
		claim = 95
		adm = 1
		dip = 3
		mil = 2
	}
}

1170.1.1 = {
	monarch = {
		name = "Sulayman II"
		dynasty = "Shrazi"
		birth_date = 1140.1.1
		adm = 1
		dip = 3
		mil = 2
	}
}

1170.1.1 = {
	heir = {
		name = "Dawud"
		monarch_name = "Dawud III"
		dynasty = "Shrazi"
		birth_date = 1159.1.1
		death_date = 1190.1.1
		claim = 95
		adm = 5
		dip = 4
		mil = 3
	}
}

1189.1.1 = {
	monarch = {
		name = "Dawud III"
		dynasty = "Shrazi"
		birth_date = 1159.1.1
		adm = 5
		dip = 4
		mil = 3
	}
}

1189.1.1 = {
	heir = {
		name = "Talut"
		monarch_name = "Talut I"
		dynasty = "Shrazi"
		birth_date = 1160.1.1
		death_date = 1191.1.1
		claim = 95
		adm = 4
		dip = 1
		mil = 5
	}
}

1190.1.1 = {
	monarch = {
		name = "Talut I"
		dynasty = "Shrazi"
		birth_date = 1160.1.1
		adm = 4
		dip = 1
		mil = 5
	}
}

1190.1.1 = {
	heir = {
		name = "Hussein"
		monarch_name = "Hussein I"
		dynasty = "Shrazi"
		birth_date = 1161.1.1
		death_date = 1215.1.1
		claim = 95
		adm = 0
		dip = 4
		mil = 1
	}
}

1191.1.1 = {
	monarch = {
		name = "Hussein I"
		dynasty = "Shrazi"
		birth_date = 1161.1.1
		adm = 0
		dip = 4
		mil = 1
	}
}

1191.1.1 = {
	heir = {
		name = "Khalid"
		monarch_name = "Khalid II"
		dynasty = "Shrazi"
		birth_date = 1185.1.1
		death_date = 1225.1.1
		claim = 95
		adm = 5
		dip = 0
		mil = 3
	}
}

1215.1.1 = {
	monarch = {
		name = "Khalid II"
		dynasty = "Shrazi"
		birth_date = 1185.1.1
		adm = 5
		dip = 0
		mil = 3
	}
}

1215.1.1 = {
	heir = {
		name = "Ibn Sulayman"
		monarch_name = "Ibn Sulayman"
		dynasty = "Shrazi"
		birth_date = 1195.1.1
		death_date = 1263.1.1
		claim = 95
		adm = 3
		dip = 1
		mil = 3
	}
}

1225.1.1 = {
	monarch = {
		name = "Ibn Sulayman"
		dynasty = "Shrazi"
		birth_date = 1195.1.1
		adm = 3
		dip = 1
		mil = 3
	}
}

1233.1.1 = {
	heir = {
		name = "Ali"
		monarch_name = "Ali III"
		dynasty = "Shrazi"
		birth_date = 1233.1.1
		death_date = 1277.1.1
		claim = 95
		adm = 5
		dip = 4
		mil = 4
	}
}

1263.1.1 = {
	monarch = {
		name = "Ali III"
		dynasty = "Shrazi"
		birth_date = 1233.1.1
		adm = 5
		dip = 4
		mil = 4
	}
}

1277.1.1 = {
	monarch = {
		name = "Al-Hassan I"
		dynasty = "al-Mawahib"
		birth_date = 1247.1.1
		adm = 1
		dip = 5
		mil = 1
	}
}

1277.1.1 = {
	heir = {
		name = "Sulayman"
		monarch_name = "Sulayman I"
		dynasty = "al-Mawahib"
		birth_date = 1264.1.1
		death_date = 1308.1.1
		claim = 95
		adm = 0
		dip = 4
		mil = 0
	}
}

1294.1.1 = {
	monarch = {
		name = "Sulayman I"
		dynasty = "al-Mawahib"
		birth_date = 1264.1.1
		adm = 0
		dip = 4
		mil = 0
	}
}

1294.1.1 = {
	heir = {
		name = "Daud"
		monarch_name = "Daud I"
		dynasty = "al-Mawahib"
		birth_date = 1278.1.1
		death_date = 1310.1.1
		claim = 95
		adm = 4
		dip = 2
		mil = 2
	}
}

1308.1.1 = {
	monarch = {
		name = "Daud I"
		dynasty = "al-Mawahib"
		birth_date = 1278.1.1
		adm = 4
		dip = 2
		mil = 2
	}
}

1308.1.1 = {
	heir = {
		name = "Abu al-Mawahib"
		monarch_name = "Abu al-Mawahib"
		dynasty = "al-Mawahib"
		birth_date = 1280.1.1
		death_date = 1333.1.1
		claim = 95
		adm = 5
		dip = 3
		mil = 3
	}
}

1310.1.1 = {
	monarch = {
		name = "Abu al-Mawahib"
		dynasty = "al-Mawahib"
		birth_date = 1280.1.1
		adm = 5
		dip = 3
		mil = 3
	}
}

1310.1.1 = {
	heir = {
		name = "Dawud"
		monarch_name = "Dawud I"
		dynasty = "al-Mawahib"
		birth_date = 1303.1.1
		death_date = 1356.1.1
		claim = 95
		adm = 0
		dip = 1
		mil = 3
	}
}

1333.1.1 = {
	monarch = {
		name = "Dawud I"
		dynasty = "al-Mawahib"
		birth_date = 1303.1.1
		adm = 0
		dip = 1
		mil = 3
	}
}

1333.1.1 = {
	heir = {
		name = "Husayn"
		monarch_name = "Husayn I"
		dynasty = "al-Mawahib"
		birth_date = 1326.1.1
		death_date = 1362.1.1
		claim = 95
		adm = 0
		dip = 4
		mil = 5
	}
}

1356.1.1 = {
	monarch = {
		name = "Husayn I"
		dynasty = "al-Mawahib"
		birth_date = 1326.1.1
		adm = 0
		dip = 4
		mil = 5
	}
}

1356.1.1 = {
	heir = {
		name = "Talut"
		monarch_name = "Talut I"
		dynasty = "al-Mawahib"
		birth_date = 1332.1.1
		death_date = 1364.1.1
		claim = 95
		adm = 0
		dip = 1
		mil = 5
	}
}

1362.1.1 = {
	monarch = {
		name = "Talut I"
		dynasty = "al-Mawahib"
		birth_date = 1332.1.1
		adm = 0
		dip = 1
		mil = 5
	}
}

1362.1.1 = {
	heir = {
		name = "Sulayman"
		monarch_name = "Sulayman II"
		dynasty = "al-Mawahib"
		birth_date = 1334.1.1
		death_date = 1366.1.1
		claim = 95
		adm = 0
		dip = 3
		mil = 3
	}
}

1364.1.1 = {
	monarch = {
		name = "Sulayman II"
		dynasty = "al-Mawahib"
		birth_date = 1334.1.1
		adm = 0
		dip = 3
		mil = 3
	}
}

1364.1.1 = {
	heir = {
		name = "Sulayman"
		monarch_name = "Sulayman III"
		dynasty = "al-Mawahib"
		birth_date = 1336.1.1
		death_date = 1389.1.1
		claim = 95
		adm = 2
		dip = 2
		mil = 4
	}
}

1366.1.1 = {
	monarch = {
		name = "Sulayman III"
		dynasty = "al-Mawahib"
		birth_date = 1336.1.1
		adm = 2
		dip = 2
		mil = 4
	}
}

1366.1.1 = {
	heir = {
		name = "Husayn"
		monarch_name = "Husayn II"
		dynasty = "al-Mawahib"
		birth_date = 1359.1.1
		death_date = 1416.1.1
		claim = 95
		adm = 2
		dip = 0
		mil = 2
	}
}

1389.1.1 = {
	monarch = {
		name = "Husayn II"
		dynasty = "al-Mawahib"
		adm = 1
		dip = 3
		mil = 1
	}
	add_piety = 0.05
}

1399.1.1 = {
	heir = {
		name = "Muhammad"
		monarch_name = "Muhammad I"
		dynasty = "al-Mawahib"
		birth_Date = 1399.1.1
		death_date = 1425.1.1
		claim = 95
		adm = 4
		dip = 0
		mil = 0
	}
}

1416.1.1 = {
	monarch = {
		name = "Muhammad I"
		dynasty = "al-Mawahib"
		adm = 4
		dip = 0
		mil = 0
	}
}

1416.1.1 = {
	heir = {
		name = "Sulayman"
		monarch_name = "Sulayman VII"
		dynasty = "al-Mawahib"
		birth_date = 1416.1.1
		death_Date = 1442.1.1
		claim = 95
		adm = 2
		dip = 3
		mil = 2
	}
}

1425.1.1 = {
	monarch = {
		name = "Sulayman VII"
		dynasty = "al-Mawahib"
		adm = 2
		dip = 3
		mil = 2
	}
}

1425.1.1 = {
	heir = {
		name = "Ismā'īl"
		monarch_name = "Ismā'īl"
		dynasty = "al-Mawahib"
		birth_Date = 1410.1.1
		death_date = 1454.1.1
		claim = 95
		adm = 3
		dip = 1
		mil = 4
	}
}

1442.1.1 = { #Suleimans Uncle
	monarch = {
		name = "Ismā'īl"
		dynasty = "al-Mawahib"
		adm = 3
		dip = 1
		mil = 4
	}
}

1454.1.1 = { #Emir, usurper
	monarch = {
		name = "Muhammad III"
		dynasty = "al-Mawahib"
		adm = 0
		dip = 0
		mil = 1
	}
}

1454.1.1 = {
	heir = {
		name = "Ahmad"
		monarch_name = "Ahmad"
		dynasty = "al-Mawahib"
		birth_date = 1435.1.1
		death_date = 1456.1.1
		claim = 95
		adm = 1
		dip = 0
		mil = 1
	}
}

1455.1.1 = { 
	monarch = {
		name = "Ahmad"
		dynasty = "al-Mawahib"
		adm = 1
		dip = 0
		mil = 1
	}
}

1456.1.1 = { #Installed in a coup
	monarch = {
		name = "Hasan VI"
		dynasty = "al-Mawahib"
		adm = 3
		dip = 1
		mil = 2
	}
}

1456.1.1 = {
	heir = {
		name = "Sa'īd"
		monarch_name = "Sa'īd"
		dynasty = "al-Mawahib"
		birth_date = 1456.1.1
		death_Date = 1476.1.1
		claim = 95
		adm = 2
		dip = 0
		mil = 2
	}
}

1466.1.1 = {
	monarch = {
		name = "Sa'īd I"
		dynasty = "al-Mawahib"
		adm = 2
		dip = 0
		mil = 2
	}
}

1476.1.1 = { #Vizier seizes power after the death of Sa'id
	monarch = {
		name = "Sulaymān VII"
		dynasty = "al-Mawahib"
		adm = 0
		dip = 1
		mil = 0
	}
}

1476.1.1 = {
	heir = {
		name = "'Abd Allāh"
		monarch_name = "'Abd Allāh"
		dynasty = "al-Mawahib"
		birth_date = 1470.1.1
		death_Date = 1478.1.1
		claim = 95
		adm = 1
		dip = 2
		mil = 3
	}
}

1477.1.1 = {
	monarch = {
		name = "'Abd Allāh"
		dynasty = "al-Mawahib"
		adm = 1
		dip = 2
		mil = 3
	}
}

1477.1.1 = {
	heir = {
		name = "'Alī"
		monarch_name = "'Alī VI"
		dynasty = "al-Mawahib"
		birth_date = 1477.1.1
		death_Date = 1479.1.1
		claim = 95
		adm = 0
		dip = 3
		mil = 3
	}
}

1478.1.1 = {
	monarch = {
		name = "'Alī VI"
		dynasty = "al-Mawahib"
		adm = 0
		dip = 3
		mil = 3
	}
}

1478.1.1 = {
	heir = {
		name = "Hasan"
		monarch_name = "Hasan VII"
		dynasty = "al-Mawahib"
		birth_date = 1470.1.1
		death_date = 1490.1.1
		claim = 45
		adm = 2
		dip = 2
		mil = 2
	}
}

1479.1.1 = {
	monarch = {
		name = "Hasan VII"
		dynasty = "al-Mawahib"
		adm = 2
		dip = 2
		mil = 2
	}
}

1485.1.1 = {
	monarch = {
		name = "Hasan VII"
		dynasty = "al-Mawahib"
		adm = 2
		dip = 2
		mil = 2
	}
}

1485.6.1 = { #Hasan deposed, replaced by Muhammad
	monarch = {
		name = "Muhammad IV"
		dynasty = "al-Mawahib"
		adm = 1
		dip = 2
		mil = 1
	}
}

1486.1.1 = { #Reinstalled
	monarch = {
		name = "Hasan VII"
		dynasty = "al-Mawahib"
		adm = 2
		dip = 2
		mil = 2
	}
}

1486.1.1 = {
	heir = {
		name = "Ibrāhīm"
		monarch_name = "Ibrāhīm I"
		dynasty = "al-Mawahib"
		birth_date = 1470.1.1
		death_Date = 1495.1.1
		claim = 95
		adm = 1
		dip = 1
		mil = 2
	}
}

1490.1.1 = {
	monarch = {
		name = "Ibrāhīm I"
		dynasty = "al-Mawahib"
		adm = 1
		dip = 1
		mil = 2
	}
}

1495.1.1 = { #Installed by Emir
	monarch = {
		name = "al-Fudail"
		dynasty = "al-Mawahib"
		adm = 2
		dip = 1
		mil = 1
	}
}

1499.1.1 = { #Minister, seizes power
	monarch = {
		name = "Ibrāhīm II"
		dynasty = "al-Mawahib"
		adm = 3
		dip = 0
		mil = 1
	}
}

1505.7.23 = {
	monarch = {
		name = "Muhammad V"
		dynasty = "al-Mawahib"
		adm = 0
		dip = 1
		mil = 0
	}
}

1506.1.1 = {
	monarch = {
		name = "Hasan VIII"
		dynasty = "al-Mawahib"
		adm = 0
		dip = 2
		mil = 0
	}
}

1507.1.1 = {
	monarch = {
		name = "Muhammad VI"
		dynasty = "al-Mawahib"
		adm = 1
		dip = 0
		mil = 1
	}
}

1508.1.1 = {
	monarch = {
		name = "Sā'īd II"
		dynasty = "al-Mawahib"
		adm = 3
		dip = 3
		mil = 2
	}
}

1513.1.1 = {
	monarch = {
		name = "Muhammad VII"
		dynasty = "al-Mawahib"
		adm = 4
		dip = 2
		mil = 1
	}
}

#Portuguese occupation of Kilwa.
#Puppets

1580.1.1 = {
	monarch = {
		name = "Yusuf"
		dynasty = "al-Mawahib"
		adm = 2
		dip = 2
		mil = 1
	}
}

#Rulers of Zanzibar

1653.1.1 = {
	monarch = {
		name = "Mwana Mwema"
		dynasty = "Zanzibari"
		female = yes
		adm = 3
		dip = 3
		mil = 2
	}
}

1653.1.1 = {
	heir = {
		name = "Yusuf"
		monarch_name = "Yusuf"
		dynasty = "Zanzibari"
		birth_date = 1630.1.1
		death_Date = 1694.1.1
		claim = 95
		adm = 2
		dip = 2
		mil = 2
	}
}

1675.1.1 = {
	monarch = {
		name = "Yusuf"
		dynasty = "Zanzibari"
		adm = 2
		dip = 2
		mil = 2
	}
}

1680.1.1 = {
	heir = {
		name = "Fatima"
		monarch_name = "Fatima"
		dynasty = "Zanzibari"
		female = yes
		birth_date = 1680.1.1
		death_Date = 1711.1.1
		claim = 95
		adm = 2
		dip = 3
		mil = 2
	}
}

1694.1.1 = {
	monarch = {
		name = "Fatima"
		dynasty = "Zanzibari"
		female = yes
		adm = 2
		dip = 3
		mil = 2
	}
}

1694.1.1 = {
	heir = {
		name = "Hassan"
		monarch_name = "Hassan"
		dynasty = "Zanzibari"
		female = yes
		birth_date = 1670.1.1
		death_Date = 1728.1.1
		claim = 95
		adm = 3
		dip = 3
		mil = 2
	}
}

1711.1.1 = {
	monarch = {
		name = "Hassan"
		dynasty = "Zanzibari"
		adm = 3
		dip = 3
		mil = 2
	}
}

1711.1.1 = {
	heir = {
		name = "Sultan bin Hassan"
		monarch_name = "Sultan"
		dynasty = "Zanzibari"
		female = yes
		birth_date = 1687.1.1
		death_Date = 1744.1.1
		claim = 95
		adm = 2
		dip = 3
		mil = 2
	}
}

1728.1.1 = {
	monarch = {
		name = "Sultan"
		dynasty = "Zanzibari"
		adm = 2
		dip = 3
		mil = 2
	}
}

1728.1.1 = {
	heir = {
		name = "Ahmad"
		monarch_name = "Ahmad"
		dynasty = "Zanzibari"
		female = yes
		birth_date = 1700.1.1
		death_Date = 1730.1.1
		claim = 95
		adm = 1
		dip = 2
		mil = 2
	}
}

1744.1.1 = {
	monarch = {
		name = "Ahmad"
		dynasty = "Zanzibari"
		adm = 1
		dip = 2
		mil = 2
	}
}