Not stated and unknown; one early tradition claimed Jeremiah wrote 1 and 2 Kings. Covering about three hundred years from the 800s BC on, 2 Kings was probably written sometime after the Babylonian destruction of Jerusalem in 586 BC.
In Ten Words or Less
Both Jewish nations are destroyed for their disobedience to God.
Know Your Bible