The militant group ISIS now controls land in both countries and has declared the region a caliphate.