It's so weird because both are Sunni and want Sharia Law, only that ISIL wants an Islamic caliphate and the Taliban wants Afghanistan, Iran, Pakistan... ISIL is better off just getting in league with them like Germany did with Italy.
At least they got each other to shoot at instead of whomever else.