In 450B.C., the Jewish people found themselves to be corrupted by their mixing with other races that pushed their pagan worship on them, and who led the Jews to disregard marriage vows. With the situation becoming altogether corrupt, the Jews resolved to break off all their relations with foreigners.
It worked, and the Jews were able to reclaim their high moral standards.
The trouble was, it worked too well, with the Jews forgetting that the people of other races were also God's children.
God then inspired a Jewish writer to compose this humorous story of Jonah who went too far in hating Foreigners.
Even in wartime we must regard the ordinary people of hostile countries as God's children wo have been led astray,