His famous work Safahat, a collection of 44 poems in various lengths, was first published in 1911.
His poems were themed with social problems and religious issues.
In 1920, Ersoy was elected as the deputy of the Burdur province and entered the parliament.
- National anthem
Upon a special request by the then-Education Minister Hamdullah Suphi Bey, the poet penned the Istiklal Marsi (Independence March).
In the march, Ersoy immortalized his nation's battle for survival, in the wake of World War I, crowning its national liberation in 1921 during the Turkish War of Independence against foreign occupation.
Devoting all his efforts to the well-being of Turkish people through his poetry and his public speeches, Ersoy donated the monetary reward he received for his independence march to the charity.
On March 12, 1921, the Turkish Grand National Assembly officially declared Ersoy's poem as the national anthem.
Founded in 1923, the Republic of Turkey also adopted the poem as national anthem.
In 1925, Ersoy moved to the Egyptian capital Cairo where he taught Turkish language at a university.
After living for 11 years in Egypt, Ersoy returned to Istanbul in 1936 where he passed away in his apartment on Dec. 27 in the same year.