Cole Randolph goes trick or treating with his friends Dalton and Jenna and some other sixth graders to a haunted house, just wanting to have some fun. Their the group is kidnapped, except for Cole, and taken away. Cole follows them, wanting to rescue his friends, only to find himself and his friends in The Outskirts, an in-between place far from Earth.
He attempts to rescue his friends but ends up enslaved and sold to the Sky Raiders. There he helps them raid strange floating castles, filled with deathly danger. While on a mission, his party is deceived and he is stranded with a slave girl and her mentor, both of whom are shapers. The mentor dies creating a craft to take Cole and Miracle (known as Mira) back to the Sky Raiders.
After returning, an army from the High King comes to take Mira to Junction, capital of The Outskirts. Cole, Jace, and Twitch help Mira escape. They pass through the Eastern Cloudwall and discover a hidden castle, home of Declan the high shaper of Sambria. Cole, Jace, and Twitch learn that Mira is actually the High King's daughter whose power had been stolen by the High King but is now slowly returning.