Ten years after Pythagoras arrived in Egypt, relations between that country and Samos fell apart. Polycrates sent 40 ships to help Cambyses II, the king of Persia, invaded Egypt. During this war, Egypt lost and Pythagoras was taken prisoner and taken to Babylon. Pygathoras wasn't treate as a prisoner of war as we would consider today. He continued his education in mathematics and music and delved into the teachings of the priests, learning their sacred rites. He became extremely proficient in his studies of mathematics and sciences as taught by the Babylonians.