Mosul is the largest city north of Baghdad and has long been a stronghold of Sunni militant fighters .