Scott Joplin wrote Maple Leaf Rag as his first composition in 1899 and composed many songs up until 1916, just a year before his passing.