How did the great exile end?

Cyrus of Persia conquered Babylonia in 539.