sentence1: When Arabs conquered Sicily in the ninth century and turned to the mainland, Naples at first sought an alliance.
sentence2: After the Arabs conquered Sicily and went to the mainland, they accepted an alliance from Naples.