Complex sentence: In 1705 he arrived in Mexico and only in 1707 he managed to leave from Acapulco, on the so-called Manila Galleon, and after touching the Mariana Islands, he arrived in the Philippines, where he stayed for almost two years.
Split into simpler sentences: In 1705 he arrived in Mexico and not earlier than 1707 he managed to leave from Acapulco, on a Manila galleon. After touching the Mariana Islands, he arrived in the Philippines, where he stayed for almost two years.