Throughout the early years of their caliphate, the Umayyads had tried several times to invade the Indian subcontinent.
One of their main objectives was to gain control of the trade route branch that ran down the Indus River valley to the seaports of Sindh.