Which preposition to use with affiliating

with Occurrences 46%

The Pharaoh of Joseph's time seems to have affiliated with the Israelites as natural friends,to assist him in case of war.

to Occurrences 14%

AMELIORATION OF THE DEPRESSED CLASSES The resolution of the Senate of the Gujarat National University in regard to Mr. Andrews' question about the admission of children of the 'depressed' classes to the schools affiliated to that University is reported to have raised a flutter in Ahmedabad.

Which preposition to use with  affiliating