It was written by Allama Iqbal, the ideologue and father of Pakistan and Pan-Islamism of radical variety. He wrote 'Saare Jahan Se Accha' when he was 19, but soon thereafter turned a rabid Hindu-hater, as is evident from a reading of his magnum opus,Shikwa and Jawab-e-Shikwa, wherein he has prayed to Allah for converting all Hindu heathens to Islam.