Violin Sonata No. 27 in G major (K. 379/373a) was composed by Wolfgang Amadeus Mozart in Vienna in 1781 and first published in the same year.