And in the end, he realizes that the treasure he is looking for is actually hidden in that abandoned shack. This abandoned hut, these golds, the temptation to get rich invited him to such adventures that, in the end, Santiago was no longer interested in gold. He was able to understand himself, he was able to feel happiness, he was able to fall in love with someone.