The city is located on the left bank of the Middle Euphrates, at the junction with the Nahr Isa canal, the first of the navigable canals that link the Euphrates to the River Tigris to the east. The origins of the city are unknown, but ancient, perhaps dating to the Babylonian era and even earlier: the local artificial mound of Tell Aswad dates to .