The roots of jazz can be traced back to the late 19th century with the emergence of ragtime, a genre characterized by its syncopated rhythms and lively melodies. Ragtime music, predominantly played on the piano, was a precursor to bossa nova jazz, showcasing the elements of improvisation and syncopation that would later become fundamental in the jazz genre.