he married in 1252 and was assistant to the chief judge in egypt until 1261, when he assumed the position of chief judge in damascus. he lost this position in 1271 and returned to egypt, where he taught until being reinstated as judge in damascus in 1278. he retired in 1281 and died in damascus on october 30, 1282 (saturday, 26th of rajab 681).