King Joash of Israel captured Joash's son King Amaziah of Judah, the grandson of Ahaziah, at Beth-shemesh and brought him back to Jerusalem, where he broke down 400 cubits of the wall of Jerusalem from the Ephraim Gate to the Corner Gate. 