Johann Baptist Mayrhofer (22 October[1] 1787 – 5 February 1836) was an Austrian poet and librettist. He is best known for his close friendship with the composer Franz Schubert.