The abolition of slavery led to new opportunities for the education of freed African Americans. Although strict segregation limited employment opportunities for most blacks, many were able to find work in entertainment. Black musicians were able to provide "low-class" entertainment in dances, minstrel shows, and in vaudeville, by which many marching bands formed. Black pianists played in bars, clubs, and brothels, as ragtime developed.
Ragtime appeared as sheet music, popularized by African American musicians such as the entertainer Ernest Hogan, whose hit songs appeared in 1895; two years later Vess Ossman recorded a medley of these songs as a banjo solo "Rag Time Medley". Also in 1897, the white composer William H. Krell published his "Mississippi Rag" as the first written piano instrumental ragtime piece, and Tom Turpin published his Harlem Rag, that was the first rag published by an African-American. The classically trained pianist Scott Joplin and the acknowledged "king of ragtime" produced his "Original Rags" in the following year, then in 1899 had an international hit with "Maple Leaf Rag". He wrote numerous popular rags, including, "The Entertainer", combining syncopation, banjo figurations and sometimes call-and-response, which led to the ragtime idiom being taken up by classical composers including Claude Debussy and Igor Stravinsky. Blues music was published and popularized by W. C. Handy, whose "Memphis Blues" of 1912 and "St. Louis Blues" of 1914 both became jazz standards.