The St Matthew Passion (German: Matthäus-Passion), BWV 244, is a Passion, a sacred oratorio written by Johann Sebastian Bach in 1727 for solo voices, double choir and double orchestra, with libretto by Picander (Christian Friedrich Henrici). It sets chapters and 27 of the Gospel of Matthew (in the German translation of Martin Luther) to music, with interspersed chorales and arias. It is widely regarded as one of the masterpieces of classical sacred music. The original Latin title Passio Domini nostri J.C. secundum Evangelistam Matthæum translates to "The Passion of our Lord J[esus] C[hrist] according to the Evangelist Matthew".
The St Matthew Passion is the second of two Passion settings by Bach that have survived in their entirety, the first being the St John Passion, first performed in 1724.
Little is known with certainty about the creation process of the St Matthew Passion. The available information derives from extant early manuscripts, contemporary publications of the libretto, and circumstantial data, for instance in documents archived by the Town Council of Leipzig.
The St Matthew Passion was probably first performed on 11 April 1727 in the St. Thomas Church, and again on 15 April 1729, 30 March 1736, and 23 March 1742. Bach then revised it again between 1743 and 1746.
In Leipzig it was not allowed to paraphrase the words of the Gospel in a Passion presentation on Good Friday. A setting of the then popular Brockes Passion libretto, largely consisting of such paraphrasing, could not be done without replacing the paraphrases by actual Gospel text. That was the option chosen by Bach for his 1724 St John Passion. In 1725 Christian Friedrich Henrici, a Leipzig poet having chosen Picander as pen name, had published Erbauliche Gedanken Auf den Grünen Donnerstag und Charfreytag ("Edifying thoughts on Maundy Thursday and Good Friday"), containing free verse suitable for a Passion presentation in addition to the Gospel text. Bach seems to have stimulated the poet to write more of such verse in order to come to a full-fledged libretto for a Passion presentation combined with the Passion text Chapters 26 and 27 in the Gospel of St Matthew.