Long ago there was a man who was desperate to marry someone they dearly loved. In order to marry them they needed to have something special. Since the man didn't have or was poor he went to go get advice from a one legged gypsy named Madame Zeroni. He got advice to take a pig up a mountain everyday till he was ready and then the man would come back and take Madame Zeroni up the mountain but if the man forgot Madame Zeroni his family would be cursed. So the man took the advice and left.
So the man finished his task that he got from Madame Zeroni the man give the pig to his crush. But the man was hurt because he found out that his crush was dumb so he got mad and ran away to america.
Once the man got mad he ran away. But he was worried because he forgot about Madame Zeroni which means his family was cursed.
Since the family was cursed they got bad-luck. The bad-luck they got was getting a fortune stole from that family from a woman named Kissing Kate Barlow and burring it.
Another thing that was bad-luck for the family was having the 4th Stanley Yelnats go to a detention camp. Which wasn't that bad until he met a person who was connected to the family curse. Which was Hector/Zero Zeroni
Once the Stanley and Zero found out about the curse they had already broken it. Since the did they decided to dig one more hole. Which they did and found a chest whith Stanley's name on it and was full of fortune and both boys and family lived happily ever after.