Tannhäuser is an 1845 opera in three acts, with music and text by Richard Wagner. It is based on two German legends: Tannhäuser, the mythologized medieval German Minnesänger and poet, and the tale of the Wartburg Song Contest.