The story recounts Jonah's initial refusal to follow God's command to preach in Nineveh, leading him to flee by ship, which results in a storm. After being thrown overboard by the sailors, Jonah is swallowed by a great fish, where he prays for help, and subsequently is spat out onto the beach. He finally obeys God's command to deliver His message to Nineveh, highlighting the importance of heeding divine calls.