There are two questions:
1) What group defeated the Assyrians? -- the Babylonians led by
King Nebuchadnezzar.
2) Did King Nebuchadnezzar take Jerusalem in 597 B.C.E.? -- Yes
and No. He brought Judah into a tributary vassal relationship at
that time, but did not actually occupy the city until 586
B.C.E.