In the story, the wise man built his house on solid ground, but the foolish man built his house on the sand of a dry riverbed.