government = despotic_monarchy 
mercantilism = 0.1
technology_group = muslim
religion = ibadi #Sufri
primary_culture = berber
capital = 336 # Tlemcen

743.1.1 = {
	monarch = {
		name = "Abu Qurra"
		dynasty = "Ifrinid"
		birth_date = 720.1.1
		adm = 1
		dip = 1
		mil = 5
	}
}

950.1.1 = {
	monarch = {
		name = "Abdallah"
		dynasty = "Ifrinid"
		birth_date = 920.1.1
		adm = 2
		dip = 0
		mil = 4
	}
}

950.1.1 = {
	heir = {
		name = "Yeddou"
		monarch_name = "Yeddou"
		dynasty = "Ifrinid"
		birth_date = 928.1.1
		death_date = 993.1.1
		claim = 95
		adm = 2
		dip = 5
		mil = 0
	}
}

958.1.1 = {
	monarch = {
		name = "Yeddou"
		dynasty = "Ifrinid"
		birth_date = 928.1.1
		adm = 2
		dip = 5
		mil = 0
	}
}

963.1.1 = {
	heir = {
		name = "Habbous"
		monarch_name = "Habbous"
		dynasty = "Ifrinid"
		birth_date = 963.1.1
		death_date = 1029.1.1
		claim = 95
		adm = 1
		dip = 1
		mil = 0
	}
}

993.1.1 = {
	monarch = {
		name = "Habbous"
		dynasty = "Ifrinid"
		birth_date = 963.1.1
		adm = 1
		dip = 1
		mil = 0
	}
}

999.1.1 = {
	heir = {
		name = "Tanim"
		monarch_name = "Tanim"
		dynasty = "Ifrinid"
		birth_date = 999.1.1
		death_date = 1036.1.1
		claim = 95
		adm = 2
		dip = 1
		mil = 1
	}
}

1029.1.1 = {
	monarch = {
		name = "Tanim"
		dynasty = "Ifrinid"
		birth_date = 999.1.1
		adm = 2
		dip = 1
		mil = 1
	}
}

1029.1.1 = {
	heir = {
		name = "Abou Kamal"
		monarch_name = "Abou Kamal"
		dynasty = "Ifrinid"
		birth_date = 1006.1.1
		death_date = 1055.1.1
		claim = 95
		adm = 3
		dip = 5
		mil = 1
	}
}

1036.1.1 = {
	monarch = {
		name = "Abou Kamal"
		dynasty = "Ifrinid"
		birth_date = 1006.1.1
		adm = 3
		dip = 5
		mil = 1
	}
}

1036.1.1 = {
	heir = {
		name = "Youcef"
		monarch_name = "Youcef"
		dynasty = "Ifrinid"
		birth_date = 1025.1.1
		death_date = 1056.1.1
		claim = 95
		adm = 1
		dip = 2
		mil = 4
	}
}

1055.1.1 = {
	monarch = {
		name = "Youcef"
		dynasty = "Ifrinid"
		birth_date = 1025.1.1
		adm = 1
		dip = 2
		mil = 4
	}
}

1055.1.1 = {
	heir = {
		name = "Hammad"
		monarch_name = "Hammad"
		dynasty = "Ifrinid"
		birth_date = 1030.1.1
		death_date = 1066.10.1
		claim = 95
		adm = 5
		dip = 3
		mil = 4
	}
}

1056.1.1 = {
	monarch = {
		name = "Hammad"
		dynasty = "Ifrinid"
		birth_date = 1030.1.1
		adm = 5
		dip = 3
		mil = 4
	}
}

1100.1.1 = { religion = sunni }

1235.1.1 = {
	monarch = {
		name = "Yghomracen I"
		dynasty = "Zayyanid"
		adm = 3
		dip = 3
		mil = 3
	}
}

1283.1.1 = {
	monarch = {
		name = "Abu Said Uthman I"
		dynasty = "Zayyanid"
		adm = 2
		dip = 4
		mil = 3
	}
}

1303.1.1 = {
	monarch = {
		name = "Abu Zayyan I"
		dynasty = "Zayyanid"
		adm = 4
		dip = 4
		mil = 3
	}
}

1308.1.1 = {
	monarch = {
		name = "Abu Hammu I"
		dynasty = "Zayyanid"
		adm = 3
		dip = 2
		mil = 3
	}
}

1318.1.1 = {
	monarch = {
		name = "Abu Tashufin I"
		dynasty = "Zayyanid"
		adm = 1
		dip = 4
		mil = 1
	}
}

1348.1.1 = {
	monarch = {
		name = "Abu Said Uthman II"
		dynasty = "Zayyanid"
		adm = 5
		dip = 2
		mil = 3
	}
}

1359.1.1 = {
	monarch = {
		name = "Abu Hammu II"
		dynasty = "Zayyanid"
		adm = 1
		dip = 4
		mil = 1
	}
}

1389.1.1 = {
	monarch = {
		name = "Abu Tashufin II"
		dynasty = "Zayyanid"
		adm = 4
		dip = 4
		mil = 3
	}
}

1393.1.1 = {
	monarch = {
		name = "Abul Hadjdjadj I"
		dynasty = "Zayyanid"
		adm = 3
		dip = 1
		mil = 2
	}
}

1394.1.1 = {
	monarch = {
		name = "Abu Zayyan II"
		dynasty = "Zayyanid"
		adm = 3
		dip = 2
		mil = 1
	}
}

1395.1.1 = {
	monarch = {
		name = "Muhammad III"
		dynasty = "Zayyanid"
		adm = 2
		dip = 2
		mil = 2
	}
	add_piety = 0.35
}

1400.1.1 = {
	monarch = {
		name = "Abdallah I"
		dynasty = "Zayyanid"
		adm = 1
		dip = 3
		mil = 2
	}
}

1402.1.1 = {
	monarch = {
		name = "Muhammad IV"
		dynasty = "Zayyanid"
		adm = 3
		dip = 3
		mil = 2
	}
}

1411.1.1 = {
	monarch = {
		name = "Abd al-Wahid"
		dynasty = "Zayyanid"
		adm = 2
		dip = 1
		mil = 2
	}
}

1424.1.1 = {
	monarch = {
		name = "Muhammad V"
		dynasty = "Zayyanid"
		adm = 0
		dip = 3
		mil = 0
	}
}

1430.7.27 = {
	monarch = {
		name = "Ahmad II"
		dynasty = "Zayyanid"
		adm = 4
		dip = 1
		mil = 2
		leader = {	name = "Ahmad II"	type = general	rank = 0	fire = 3	shock = 2	manuever = 3	siege = 0 }
	}
}

1462.2.2 = {
	monarch = {
		name = "Muhammad V"
		dynasty = "Zayyanid"
		adm = 0
		dip = 3
		mil = 0
	}
}

1468.1.1 = {
	monarch = {
		name = "Muhammad VI"
		dynasty = "Zayyanid"
		adm = 3
		dip = 3
		mil = 2
	}
}

1505.1.1 = {
	monarch = {
		name = "Muhammad VII"
		dynasty = "Zayyanid"
		adm = 2
		dip = 0
		mil = 1
	}
}

1516.1.1 = {
	monarch = {
		name = "Mūsa III"
		dynasty = "Zayyanid"
		adm = 2
		dip = 1
		mil = 0
	}
}

1527.1.1 = {
	monarch = {
		name = "'Abd Allāh III"
		dynasty = "Zayyanid"
		adm = 2
		dip = 0
		mil = 0
	}
}

1540.1.1 = {
	monarch = {
		name = "Ahmad III"
		dynasty = "Zayyanid"
		adm = 0
		dip = 2
		mil = 1
	}
}

1550.1.1 = {
	monarch = {
		name = "al-Hasan"
		dynasty = "Zayyanid"
		adm = 0
		dip = 3
		mil = 1
	}
}