The Piano Sonata No. 11 in A major, K. 331 (300i), by Wolfgang Amadeus Mozart is a piano sonata in three movements. It is uncertain where and when Mozart composed the sonata; however, Vienna or Salzburg around 1783 is currently thought to be most likely (Paris and dates as far back as 1778 have also been suggested). The sonata was published by Artaria in 1784, alongside Nos. 10 and 12 (K. 330 and K. 332).
All of the movements are in the key of A major or A minor; therefore, the work is homotonal. A typical performance of this entire sonata takes about 20 minutes.
Since the opening movement of this sonata is a theme and variation, Mozart defied the convention of beginning a sonata with an allegro movement in sonata form. The theme consists of two 8 measure sections, each repeated, a structure shared by each variation. The tempo marking is "Andante grazioso" (walking pace, gracefully). It is in the key of A major.
The second movement of the sonata is a standard minuet and trio movement in A major. The minuet is 40 measures long, and the trio is 52.
The last movement, "Alla turca", popularly known as the "Turkish March", is often heard on its own and is one of Mozart's best-known piano pieces. Mozart himself titled the rondo "Alla turca". It imitates the sound of Turkish Janissary bands, the music of which was much in vogue at that time. Various other works of the time imitate this Turkish style, including Mozart's own opera Die Entführung aus dem Serail. In Mozart's time, the last movement was sometimes performed on pianos built with a "Turkish stop", allowing it to be embellished with extra percussion effects. The form of the rondo is A–B–C–D–E–C–A–B–C–coda, with each section (except the coda) being repeated twice.