Jonah was to fulfill a prophecy of going to Nineveh. It was a place full of sin and Jonah disobeyed gods will. He was afraid of the sin and did not trust in God’s plan.
Biblically Jonah serves as a reminder to how selfish and distrusting we can be. His faith was not strong enough to follow through to gods plan for him.