The Umayyad Caliph of those days was a powerful man named Abd al-Malik ibn Marwan. He chose the bravest and most intelligent commanders to govern the country. He trusted a courageous and strong-willed man named al-Hajjaj ibn Yusuf al-Thaqafi and appointed him governor of Iraq to restore security and subdue the rebels. This commander went there, quelled the rebellion, restored order, and dispatched armies to conquer Persia. This powerful leader then set his sights on Sindh, planning to conquer it entirely and annex it to the lands of Islam. His ambition was not limited to the small portion that Muslims had entered since the time of Caliph Uthman ibn Affan. Ships of the Arab merchant fleet would depart from Basra, located at the head of the Arabian Gulf, laden with Arab goods. They would pass through the ports of Sindh and return laden with ivory, perfumes, spices, coconuts, precious jewels, exotic animals, and wondrous birds. They would unload their cargo at the port of Basra, and from there it would be transported to Syria, Egypt, and other distant lands. Al-Hajjaj took great care of the fleet, introducing new improvements that strengthened its ships and enabled them to sail the vast seas. However, they feared the sea robbers who would venture out in their small boats, attacking and plundering them, and killing their passengers if they tried to resist. The most dangerous of these robbers were a group from the city of Debal in Sindh, on the coast at the mouth of the great river, the Multan. This city was ruled by a governor subservient to King Dahir. The king was well aware of the robbers' activities; he knew of their raids on Arab ships and was pleased to learn that they had plundered the largest vessels, seizing their merchandise and capturing their passengers. Al-Hajjaj was enraged and resolved to send a strong army to attack the city where the robbers resided, to punish them and their governor who did not restrain them from their harmful actions, and to test the waters of the region and learn about its conditions. But he began to consider how to justify sending this army.