Ù Ø Ø `` Ø Ù Ù Mahmud - Ä sÄ nÄ `` ) ( July 20 , 1785 â `` July 1 , 1839 ) was the 30th Sultan of the Ottoman Empire . He ruled from 1808 until his death . Ù Ø Ø `` Ø Ù Ù Mahmud - Ä sÄ nÄ `` ) ( 20 July 1785 -- 1 July 1839 ) was the 30th Sultan of the Ottoman Empire from 1808 until his death in 1839 .