The Divertimento No. 17 in D major, K. 334/320b was composed by Wolfgang Amadeus Mozart between 1779 and 1780 and was possibly composed for commemorating the graduation of a close friend of Mozart's, Georg Sigismund Robinig, from his law studies at the University of Salzburg in 1780. Lasting about 42 minutes, it is the longest of the divertimenti by Mozart.