Entering the diplomatic service in 1796, he was appointed in 1799 to a position in the Austrian embassy in Istanbul, and in this capacity he took part in the expedition under Admiral William Sidney Smith and General John Hely-Hutchinson against France.
For fifty years Hammer-Purgstall wrote prolifically on the most diverse subjects and published numerous texts and translations of Arabic, Persian and Turkish authors.
[3] By traversing so large a field, he laid himself open to the criticism of specialists, and he was severely handled by Heinrich Friedrich von Diez (1751–1817), who, in his Unfug und Betrug in der morgenländischen Litteratur, nebst vielen hundert Proben von der groben Unwissenheit des H. v. Hammer zu Wien in Sprachen und Wissenschaften (1815), devoted to him nearly 600 pages of abuse.
He also came into friendly conflict on the subject of the origin of The Thousand and One Nights with his younger English contemporary Edward William Lane.
For a biographical account of Hammer's life, see Walter Höflechner, Joseph von Hammer-Purgstall 1774–1856: ein altösterreichisches Gelehrtenleben.