Inkheart

This section's plot summary may be too long or excessively detailed. Please help improve it by removing unnecessary details and making it more concise. (September 2010) (Learn how and when to remove this template message)
One evening, whilst Mortimer "Mo" Folchart (Brendan Fraser) and his wife Teresa "Resa" Folchart (Sienna Guillory) are reading the fairy tale "Little Red Riding Hood" to their baby daughter Meggie, a red velvet hood appears out of nowhere. Several years later, a much older Meggie (Eliza Bennett) travels with her father Mo to visit an old book shop in Italy, unaware that he is secretly looking for a copy of the book, Inkheart. Shortly after finding one, Meggie comes across a marten with horns outside the shop, who tries to bite her fingers. Suddenly, a man (Paul Bettany) appears from the shadows, claiming to be an old friend while revealing the marten's name as Gwin. When Mo comes out of the book shop, he quickly recognizes the man as a person called Dustfinger, whom quickly asks to be read back into the book, only for Mo to flee with Meggie from him.
Travelling across Italy, Mo takes Meggie on a visit to Meggie's great aunt Elinor (Helen Mirren), whereupon he reveals to Meggie why he fled from Dustfinger. While she was young, Mo read to her from Inkheart, inadvertently freeing Dustfinger as a result, due to a gift he possessed from birth, that marks him as a "Silver Tongue". Unfortunately, his gift also freed the book's villain Capricorn (Andy Serkis) and several of his henchman, but at the same time, losing Resa after being forced to flee with his infant daughter. Soon, Dustfinger reappears seeking Mo, accompanied by Capricorn's minion, Basta (Jamie Foreman), who quickly captures Mo and his family and takes back Inkheart, destroying Elinor's valuable library in the process.
The four are taken to Capricorn's new castle in the real world, and imprisoned in the stables, which house various creatures from different storybooks, including the winged monkeys from The Wonderful Wizard of Oz, the minotaur from the story of Theseus, and a unicorn. During their imprisonment, Mo explains to Meggie and Elinor about his gift, stating that when he reads a person or an object out of a book, someone from the real world is sent into it, hence why his wife disappeared. Capricorn, interested in using his gift, forces Mo to read out items from books, causing him to get a stash of treasure from one of the stories in The Arabian Nights, while causing one of the 40 Thieves, named Farid (Rafi Gavron), to be brought out as well and forced into imprisonment. Dustfinger, who believed he could get his chance to return into the book, quickly learns Capricorn tricked him, and so prompts a quick escape using the famous tornado from The Wonderful Wizard of Oz; during the escape, he opts not to tell Mo that his wife Resa is in the village, but has lost her voice.
Following their escape, Meggie offers the idea of finding the author of Inkheart, a man named Fenoglio (in honor of the Italian writer Beppe Fenoglio), who may have access to a copy of the rare-to-find book. Whilst Elinor decides to leave them to recover what is left of her book collection, the rest head for the author's location, with Dustfinger initially staying with Farid to teach him to juggle fire, yet secretly afraid of learning his fate in the book. When he does travel with Mo to find and meet with Fenoglio (Jim Broadbent), the author's ecstatic mood, upon seeing his creation live and breath before him, causes Dustfinger to discover that his efforts to save Gwin at the end of the book brings about his death. Angry, he berates the author for not being his god and that he has the freedom to choose whatever fate he wants, before eventually confessing to Mo, who Resa is in the book, that his wife was in Capricorn's castle.
Both he and Mo take Fenoglio's car, leaving Meggie behind with the author, where during the journey, they quickly discover that Farid had stowed away in the car's trunk, and take him along at his insistence. Whilst away, Meggie begins reading a number of books out loud, and discovers she is a "Silver Tongue" herself, just before Basta arrives with men to capture Mo. Upon learning that she can read things out of books, after the author notices she brought Toto from the The Wonderful Wizard of Oz, Basta takes her and Fenoglio back to Capricorn. Elinor, who has a change of heart and does not take the train back to her home, returns to the author's home and quickly senses trouble, pursuing the captured pair. At the castle, Capricorn reveals to Meggie his intentions of bringing the monstrous Shadow from Inkheart, revealing that, although he burned all the copies, he spared one for such a purpose, threatening to harm her mother if she fails to comply. During this time, Mo sneaks into the castle, but is captured by Capricorn's henchmen.
After escaping his cell, Mo attempts to free Meggie, Resa and Fenoglio from imprisonment, as Capricorn forces Meggie to read out the Shadow from the book. Meanwhile, Dustfinger sneaks back into the castle with Farid and decide to set it alight, after his conscience gets the better of him. The distraction this causes allows Fenoglio to give Toto a rewrite he made to help Meggie stop Capricorn's plan. The plan partly works until Capricorn gains the upper hand. Just then, Elinor arrives with the creatures Capricorn imprisoned, giving Mo the opportunity to quickly throw his daughter a pen, allowing her to write out a story on her arm to combat Capricorn's plan. Meggie quickly reads out her creation, which causes Capricorn to turn into dust, vanishes his henchmen, destroys the Shadow, and return all the read out creatures back where they belong, including Toto. In addition, she grants Fenoglio's wish, and send him into Inkheart to live in the world he created, while restoring her mother's voice, allowing her and Mo to finally reunite with her, before fleeing as the castle collapses.
Shortly afterwards, Dustfinger, having missed his chance for Meggie to read him back into his book, decides to leave, not wishing to force Mo and his family to do anything without risking their happiness. As he does, Farid catches up with insisting on travelling with him to find another reader to send him back into the copy of Inkheart he had stolen before the castle collapsed. After a moment's hesitation, Dustfinger agrees and the two start off together only to have Mo catch them up and fulfill his promise. Dustfinger is soon transported safely back into Inkheart, where he reunites with his wife Roxane at their home. In the real world, Farid quickly reveals he kept Gwin with him, thus allowing Dustfinger to avoid his fate and have control over his destiny. As Mo and his family leave with Farid, Meggie agrees to teach him how to read while Farid agrees to teach her how to use the dragon breath.

Question: What happens to the castle as Mo and Meggie flee?
Answer: It collapses.