Divertimento (from the Italian divertire — to amuse) is a musical genre, with most of its examples from the 18th century. The mood of the divertimento is most often lighthearted (as a result of being played at social functions) and it is generally composed for a small ensemble. Divertimento is used to describe a wide variety of secular instrumental works for soloist or chamber ensemble.