But when they neglected the way God had laid out for them, they were greatly defeated in many battles and taken as prisoners to a foreign land. The temple of their God was burned to the ground, and their enemies took possession of their cities.