Complex sentence: He maintained close ties with the Spanish court and passed classified information about Dutch-Moroccan relations on to the Spanish, while passing information about Spain on to the Dutch and Moroccans.
Split into simpler sentences: He maintained close ties with the Spanish court and passed classified information about Dutch-Moroccan relations on to the Spanish. At the same time, he was passing information about Spain back to the Dutch and Moroccans.