There at Beth-shemesh, Jehoash king of Israel captured Amaziah king of Judah, the son of Joash, the son of Ahaziah. Then Jehoash went to Jerusalem and broke down the wall of Jerusalem from the Ephraim Gate to the Corner Gate—a section of four hundred cubits.
For several successions after the division of the kingdoms that of Judah suffered much by the enmity of Israel. After Asa's time, for several successions, it suffered more by the friendship of Israel, and by the alliance and affinity made with them. But now we meet with hostility between them again, which had not been for some ages before. I.
Commenting on 2 Kings 14:8-14
Now the rest of the acts of Jehoash which he did, and his might,.... His valiant and mighty acts which he did in his wars with the Syrians, Kg2 13:25, and how he fought with Amaziah king of Judah; a short account of which is given in the preceding verses: are they not written in the book of the chronicles of the kings of Israel?
Took Amaziah king of Judah - It is plain that Amaziah afterwards had his liberty; but how or on what terms he got it, is not known. See on Kg2 14:14 (note).