How did being part of the Arab Islamic world affect Spain?

The Moors brought ethnic diversity, higher math, and more sophisticated medical treatment to Spain. In addition, people are proud of their Moorish heritage and their architecture lives on.