William Matthews (b. Ilkeston, Derbyshire, England, 1759; d. Nottingham, England, 1830) composed MADRID (not to be confused with another tune of that name associated with "Come, Christians, Join to Sing") early in the nineteenth century, but it is not clear how the tune acquired its name. Matthews was a stocking-maker at Nottingham and served as choirmaster and music teacher. He also owned a music shop in Houndsditch. Little else is known about his life.
This decorative tune consists of six lines, each of which has its own character. Sing MADRID in harmony, with joy, and with a sense for the half note as the main beat.
--Psalter Hymnal Handbook, 1988