Violin Sonata No. 21 in E minor, K. 304 is a work by Wolfgang Amadeus Mozart. It was composed in 1778 while Mozart was in Paris. The piece was composed during the same period that Mozart's mother, Anna Maria Mozart, died, and the sonata's mood reflects this. It is the only work Mozart wrote whose home key is E minor.