Which of the following was a major step in reunifying the kingdoms in Spain?