In ancient times, most slaves were prisoners of war.
You may be able to find a part in your Bible that says that the Israelites were marched to Babylon. Please check your Bible, because it may be what your teacher expects.
Who were marched to Babylon to work as slaves?