After the overthrow of the Philippine Dynasty on 1 December 1640, which had ruled Portugal since 1580, João became King of Portugal (King John IV) and the ducal chapel moved from Vila Viçosa to Lisbon. Both brothers moved to the capital in the King's retinue and in 1641 Marcos became "mestre da Capela Real" of the Royal Chapel.