On 17 July 1517 the Sharif of Mecca capitulated to the Ottoman Sultan Selim I .
On 17 July 1517 the Sharif of Mecca gave away Ta'if to the Ottoman Sultan Selim I .