Tarshish is the place Jonah tried to flee to. God told him to preach in Nineveh, but he went down to Joppa, paid the fare on a ship bound for Tarshish, and boarded it to flee from the Lord. The text does not say that he arrived there: the storm and the great fish came during the voyage.
Later, Jonah explained why he had fled: he knew that God is gracious and compassionate and might spare Nineveh (Jonah 4:2).
Other texts portray Tarshish as a center of maritime trade. In 1 Kings 10:22, Solomon’s trading fleet returns every three years with gold, silver, ivory, apes, and peacocks; in Hebrew, the text calls these vessels “ships of Tarshish.” Ezekiel 27:12 says that Tarshish traded with Tyre, giving silver, iron, tin, and lead in exchange for goods. Jeremiah 10:9 speaks of hammered silver brought from Tarshish, which craftsmen used in idols, images treated as gods.
Isaiah 66:19 includes Tarshish among the nations and distant islands that had not heard of the Lord or seen his glory, and to which he would send survivors. This shows that God’s plan reaches even the places the prophet did not want to go.