Alessandro Melani (4 February 1639 – 3 October 1703) was an Italian composer and the brother of composer Jacopo Melani, and castrato singer Atto Melani. Along with Bernardo Pasquini and Alessandro Scarlatti, he was one of the leading composers active in Rome during the 17th century. He is also ranked among the second school of Roman opera composers which began with his brother's 1668 opera Il Girello. He is chiefly remembered today for his large output of liturgical music that he wrote while serving in various musical posts in Rome. Of particular interest is the large number of polychoral motets that he produced and his eight ascribed oratorios. Three published collections of his liturgical music survive today along with numerous solitary motets from other published volumes. A number of original manuscripts also survive.
Born in Pistoia, Melani began singing at the Pistoia Cathedral at the age of 11, remaining there for ten years until he became maestro di cappella in Orvieto and Ferrara in 1660. He returned to Pistoia in December 1666 to replace his brother as maestro di cappella of the cathedral in June 1667. The following October he was appointed maestro di cappella of the Basilica di Santa Maria Maggiore in Rome. He remained there until July 1672 when he became the maestro at San Luigi dei Francesi, remaining in that role until his death 31 years later.
Melani was a favorite composer of Cardinal Giulio Rospigliosi (later Pope Clement IX). The Papal conclave of 1667 commissioned him to write an opera (title now unknown) for Carnival of 1668. His next opera, L'empio punito (commissioned by Marie Mancini), premiered at Carnival a year later and was notably the first opera on the subject of Don Juan. In 1683 he collaborated with Scarlatti and Pasquini on the pasticcio Santa Dimna. In 1685 he composed an oratorio, Golia abbattuto, for King John III of Poland. The work was written to celebrate the Holy League's victory against the Turks; he gained the commission through the efforts of Pope Innocent XI. This coupled with the fact that Alessandro’s nephews were made a part of the minor nobility in Tuscany around this time has caused some scholars to speculate that politics played a role in the events surrounding the 1685 commission.