Shadowfax then bears Gandalf to Edoras. At Edoras, Pippin takes the Palantir from Gandalf as he sleeps and Sauron sees the Hobbit. As a result, Gandalf decides to take Pippin to Gondor to warn them of Sauron's coming invasion. Shadowfax swiftly carries Gandalf and Pippin to Minas Tirith and up its streets to The Citadel.
Shadowfax later bears Gandalf and Pippin onto the Pelennor Fields when they ride to the aid of Faramir and the other Gondorians that are retreating from Osgiliath. Gandalf rides Shadowfax during the defense of Minas Tirith.
When Pippin discovers that Denethor means to burn himself and a gravely wounded Faramir, Pippin tells Gandalf. Shadowfax bears them to The White Tree and kicks the doors of the Tombs of the Stewards open allowing Gandalf and Pippin to save Faramir.