Margarita la tornera (Margarita the Gatekeeper) is an opera in three acts composed by Ruperto Chapí to a libretto by Carlos Fernández Shaw, based on a dramatic poem by José Zorrilla. It premiered on February 24, 1909 at the Teatro Real in Madrid in a performance conducted by the composer. An acclaimed recording of the opera came out in 1999 with Plácido Domingo and Elisabete Matos.
The text of the opera was written by Carlos Fernández while the music was created by Ruperto Chapí