Stanley Yelnats is a teenage boy who is wrongly convicted of theft and sent to Camp Green Lake, a juvenile detention facility in the middle of a scorching desert. There, the boys are forced to dig holes every day under the cruel supervision of the Warden, supposedly to build character. Stanley soon realizes that the Warden is actually searching for something buried long ago. With the help of his friend Zero, he starts to uncover a story of old curses, outlaws and injustice.