Many of the people in the fort were herders and farmers who had fled there on the arrival of the British and of the 398 people who surrendered, only 177 were identified as fighting men. The British flag was briefly flown from the fort before it was blown up. British losses from the action at Dhayah included one officer and three men killed and sixteen wounded. The British expeditionary force then blew up the town of Ras Al Khaimah and established a garrison there of 800 sepoys and artillery, before visiting Jazirat Al Hamra, which was found to be deserted. They went on to destroy the fortifications and larger vessels of Umm Al Qawain, Ajman, Fasht, Sharjah, Abu Hail, and Dubai. Ten vessels that had taken shelter in Bahrain were also destroyed. The Royal Navy suffered no casualties during the action. Treaty and aftermath With the Sheikhs of these communities either in captivity or choosing to give themselves up, a treaty was proposed in order to govern peaceful relationships in the future, the General Treaty of Maritime Peace of 1820. The treaty opens, 'In the name of God, the merciful, the compassionate! Praise be to God, who hath ordained peace to be a blessing to his creatures.' Under the auspices of the UK's representative Sir William Keir Grant, the treaty prohibited piracy in the Persian Gulf, banned slavery and required all usable ships to be registered with British forces by flying distinctive red and white flags which exist today as the flags of the respective emirates. The treaty was signed by the Sheikhs of Khatt and Falaya; Jazirah Al Hamra; Abu Dhabi, Rams and Dhayah, Dubai, Sharjah, Ajman, and Umm Al Qawain. It was to lead to a permanent peace and an era of unprecedented prosperity, as well as establishing thriving coastal trading communities, some of which would grow to become global cities. References Conflicts in 1819 Anti-piracy battles involving the United Kingdom Military campaigns involving Great Britain History of the Persian Gulf History of the United Arab Emirates Treaties of the Trucial States Treaties of the United Kingdom (1801–1922) Military history of the British East India Company History of the Royal Navy 1819 in the British Empire Piracy in the Persian Gulf Battles involving the United Kingdom