The Piano Sonata No. 14 in C? minor "Quasi una fantasia", Op. 27, No. 2, by Ludwig van Beethoven, popularly known as the Moonlight Sonata (Mondscheinsonate in German), is one of Beethoven's most popular piano sonatas, as well as one of his most famous compositions for the piano. Completed in 1801,[1] the sonata was dedicated in 1802 to his pupil, the then 20-year-old[2] Countess Julie Guicciardi,[3] with whom Beethoven was, or had briefly been, in love,[4] and who was also first suspected to have been the composer's Immortal Beloved.
Are you really asking that question because if you are for real then you really should not be on this page.
And to answer your question, this was written by the one and only Ludwig van Beethoven.