Fantastic Mr. Fox

While raiding Berk's Squab Farm, Mr. Fox and his wife Felicity trigger a fox trap and become caged. Felicity reveals to Fox that she is pregnant and pleads with him to find a safer job if they escape.
Two years later, the Foxes and their sullen son Ash are living in a hole. Fox, now a newspaper columnist, moves the family into a better home in the base of a tree, ignoring the warnings of his lawyer Badger about how dangerous the area is for foxes. The tree is located very close to facilities run by three farmers: Walter Boggis, Nathan Bunce, and Franklin Bean.
Soon after the Foxes move in, Felicity's nephew Kristofferson Silverfox comes to live with them, as his father has fallen ill with double pneumonia. Ash finds this situation intolerable; his soft-spoken cousin is apparently superior to him at almost everything, and everyone, including Fox, is charmed by Kristofferson at Ash's expense. Longing for his days as a thief, Fox and his friend Kylie Opossum steal produce and poultry from the three farms.
Angered, the farmers decide to kill Fox. They camp out near his home. When Fox emerges, the farmers open fire, but only shoot off his tail. They then attempt to dig Fox out. After demolishing the site of the tree, the farmers discover the Foxes have dug an escape tunnel. Reasoning that the Foxes will have to surface for food and water eventually, the farmers wait at the tunnel mouth. Underground, Fox encounters Badger and many other local animal residents whose homes have also been destroyed by the farmers. As the animals begin fearing starvation, Fox leads Badger, Mole, Beaver, and Weasel on a digging expedition to tunnel to the three farms, robbing them clean.
While the other animals feast, Ash and Kristofferson begin to reconcile after Kristofferson defends Ash from Beaver's son. The cousins return to Bean's farm, intending to reclaim Mr. Fox's tail. When they are interrupted by the arrival of Bean's wife, Ash escapes, but Kristofferson is captured. Discovering that Fox has stolen their produce, the farmers flood the animals' tunnel network with cider.
The animals are forced into the sewers. Fox learns that the farmers plan to use Kristofferson to lure him into an ambush. The animals are confronted by Rat, Bean's security guard. Fox and Rat fight in an electrical room until Fox pushes him into an electric generator, electrocuting him. Before dying, Rat confesses Kristofferson's location. Fox asks the farmers for a meeting in town near the sewer hub where he would surrender in exchange for Kristofferson's freedom. The farmers set up an ambush, but Fox and the others anticipate it and launch a counterattack.
Fox, Ash, and Kylie slip into Bean's farm. Ash frees Kristofferson and braves enemy fire to release a rabid beagle named Spitz to keep the farmers at bay. The animals become accustomed to living in the sewers with others considering moving in. Ash and Kristofferson settle their differences and become good friends. Fox leads his family to a drain opening built into the floor of a supermarket owned by the three farmers.
Celebrating their new food source and the news that Felicity is pregnant again, the animals dance.

Question: What did the foxes have dug?
Answer: An escape tunnel