Zmaj was born in Novi Sad, then a city at the southern border of Hungary, on November 24, 1833. His family was an old and noble family. In his earliest childhood he showed a great desire to learn by heart the Serbian national songs which were recited to him, and even as a child he began to compose poems.
His father, who was a highly cultivated and wealthy man, gave him his first education in his native city. After this he went to Budapest, Prague, and Vienna, and in these cities he finished his studies in law. This was the wish of his father, but his own inclinations prompted him to take up the study of medicine. He then returned to his native city, where a prominent official position was offered to him, which he accepted; but so strong were his poetical instincts that a year later he abandoned the post to devote himself entirely to literary work.
His literary career began in 1849, his first poem being printed in 1852, in a journal called Srbski Letopis ("Serbian Annual Review"); to this and to other journals, notably Neven and Sedmica, he contributed his early productions. From that period until 1870, besides his original poems, he made many translations to Serbian from Hungarian of works by Sándor Petőfi and János Arany, two of the greatest Hungarian poets, from Russian of the works of Lermontov, as well as from German of several German and Austrian poets. In 1861 he edited the comic journal, Komarac ("The Mosquito"), and in the same year he started the literary journal, Javor, and to these papers he contributed many poems.
In 1861, he married, and during the happy years that followed he produced his admirable series of lyrical poems called Đulići, which probably remain his masterpiece. In 1862, greatly to his regret, he discontinued his beloved journal, Javor, a sacrifice which was asked of him by Svetozar Miletić, who was then active on a political journal, in order to insure the success of the latter.
In 1863, he was elected director of the Tekelianum, at Budapest. He now renewed the study of medicine at the university, and took the degree of doctor of medicine. Meanwhile he did not relax his literary labors. He also devoted himself greatly to education of Serbian youth. During his stay in Budapest he founded the literary society, Preodnica, of which he was president, and to which he devoted a large portion of his energies. In 1864 he started his famous satirical journal, "Zmaj" ("The Dragon"), which was so popular that the name became a part of his own. In 1866, his comic play "Šaran" was given with great success.
Since 1870, Zmaj has pursued his profession as a physician. He was an earnest advocate of cremation, and has devoted much time to the furtherance of that cause.
In 1872, he had the great pain of losing his wife, and, shortly after, his only child. How much these misfortunes affected him is plainly perceptible from the deeply sad tone of the poems which immediately followed. In 1873 he started another comic journal, the Žiža. During the year 1877 he began an illustrated chronicle of the Russo-Turkish War, and in 1878 appeared his popular comic journal, Starmali. During all this period he wrote not only poems, but much prose, including short novels, often under an assumed name. The best of these is probably Vidosava Brankovićeva. In that period he published a great many charming little poems for children.
Čitajući ćerki pesme strašna nostalgija me uhvatila. Mislim da sam uspela da se vratim u vreme. Konačno razumem šta piše iznad svih tih crteža koje sam gledala kao dete i izmišljala priče u svojoj glavi. Nisu toliko naivne pesme, koliko se čine na pri pogled. Ipak je ovo prava poezija za dušu. Poezija za sve uzraste.