During the Spanish domination, the duke of Bragança retired to his palace in Vila Viçosa. The ducal chapel maintained a magnificent liturgy and, in 1609, Teodósio II founded the Santos Reis Magos College, working in a similar way to the Évora school. Roberto Tornar, mestre de Capela at Vila Viçosa, would become the musical instructor of the young Duke of Barcelos, D. João (later D. João IV, king of Portugal). This king, both before and after succeeding to the Portuguese throne, enlarged immensely the musical library of his father, transforming it in the biggest musical library of the time in Europe. Further, João IV was a composer and a theorist himself, as well as a devoted patron of João Lourenço Rebelo (1610–1661), whose works he would send for printing at Rome. Robelo, some of whose pieces have been issued on CD, composed in an innovative style, making use of opulent polychoral writing "à la" Giovanni Gabrieli and combining it with the more conservative idiom of Palestrina.