Scroll down to see a video of Batkid in action
But there was disappointment for the brave little boy when he arrived for the awards show with his family, only to learn his scene had been cut from the programme.
So what had happened? Actor Andrew's rep has now spoken out about the incident.
"In full collaboration with the Academy and the show writer, Andrew prepared a segment for the Oscars to honour Miles Scott as the true hero that he is," the spokesperson confirmed.
"At some point overnight on Saturday/Sunday morning, it was decided by those running the show that the segment didn't work in the ceremony.
"They decided to pull it – Andrew and Miles were equally upset. The producers arranged for Miles and his family to visit Disneyland on Monday, and Andrew drove down to visit them and to bring Miles a personal present."
The Academy has also released a statement, explaining, "Hard decisions sometimes must be made which require the Academy to cut segments due to the logistics of production.
"Andrew Garfield understood that his segment had to be omitted. And he drives to Disneyland on Monday to spend time with Miles Scott and his family."
A source told People, "Andrew really bonded with Miles during rehearsal. They hugged, and the entire room was moved."
Nevertheless, Miles' mum has been left confused by the whole situation. "I don't know if they ran out of time, or if there was something about the segment they didn't like," Natalie Scott told The International Business Times.
"It got pulled so quickly that we didn't have a lot of insight into what was going on. It is kind of a disappointment, but things happen. I know that's how TV goes and how Hollywood is. We're just not used to that."
Little Miles hit the headlines in November when the Make-A-Wish foundation made his dream of becoming a superhero come true.
In an extraordinary display of solidarity, the streets of San Francisco came to a standstill as he worked his way around the city cheered on by crowds of supporters.
He rescued a damsel in distress, foiled the Riddler's plan to rob a band and saved San Francisco Giants' mascot Lou Seal from the Penguin.
Miles' dream day — which included riding around in the Batmobile and the publication of special edition of the Gotham City Chronicle – ended when he was presented with the key to the city for his good deeds.