Input (grade 9): Their rule was briefly ended for three years in 1258, when Hulagu Khan, the Mongol conqueror, sacked Baghdad, resuming in Egypt in 1261.
Output (grade 6): Abbasid rule was ended in 1258, when Hulagu Khan, the Mongol conqueror, sacked Baghdad.