Mosul is a major city in northern Iraq, which had an ethnically diverse population of over 1.8 million at the start of the 21st century.