Dido and Aeneas (Z. 626) is an opera in a prologue and three acts, written by the English Baroque composer Henry Purcell with a libretto by Nahum Tate. The first known performance was at Josias Priest's girls' school in London no later than the summer of 1688. The story is based on Book IV of Virgil's Aeneid. It recounts the love of Dido, Queen of Carthage, for the Trojan hero Aeneas, and her despair when he abandons her. A monumental work in Baroque opera, Dido and Aeneas is remembered as one of Purcell's foremost theatrical works. It was also Purcell's first opera, as well as his only all-sung dramatic work. One of the earliest English operas, it owes much to John Blow's Venus and Adonis, both in structure and in overall effect.