Ferdinand and Isabella , the Catholic monarchs that united all the provinces of Spain , first visited Madrid in 1477 .
Ferdinand and Isabella , confined to their small province of Castile , never visited Madrid .