text: Ferdinand and Isabella , the Catholic monarchs that united all the provinces of Spain , first visited Madrid in 1477 .
  
  ###
  
  Ferdinand and Isabella 's popularity proved to be the uniting factor amongst the provinces of Spain .