A number of prophets lived in the time of the kings. Prophets are people who hear directly from God what to say to people.
God sent them to get His people back on the right track. He wanted people to stop worshiping other gods.
He hoped that they would love Him again and obey Him again. Because then it would go well with the people.
What these prophets have said is found in Bible books that are always named after the prophet who spoke the words. The prophets in the time of the kings are Isaiah, Jeremiah, Hosea, Joel, Amos, Micha, Habakkuk, and Zephaniah.
In general, people did not want to listen to these prophets.
As a result, the country was getting worse. Eventually the country was conquered by enemies. The people from the northern empire were taken captive to Assur. Almost 150 years later, people from the southern empire were taken captive to Babylon.
The books of the prophets are not ordered in order of time, but by size: the large books at the front and the small books at the back