Peace has been restored to San Francisco after a young boy recovering from leukemia fought alongside his favorite superhero Batman in an adventurous day made possible through the Make-A-Wish Foundation.

Miles, a 5-year-old kindergartener from Tulelake in Siskiyou County, was diagnosed with leukemia when he was 20 months old and ended chemotherapy treatment in June, with the cancer now in remission, Make-A-Wish Greater Bay Area executive director Patricia Wilson said. "He already battled a villain in real life. He fought cancer and won," Wilson said.

MORE: SF Morphs Into Gotham City for "Batkid"

The nonprofit arranged to turn San Francisco into "Gotham City," where Miles would embark on a series of rescues and make his wish to be Batman come true.

Thousands of people from around the Bay Area gathered at multiple sites throughout the city to cheer on the boy, who was dressed in a Batman costume complete with a mask and cape. The day started off with a 10 a.m. call from San Francisco police Chief Greg Suhr to alert him of a damsel in distress tied on the San Francisco Municipal Railway Powell-Hyde cable car line.

The duo scrambled to Nob Hill to save the damsel, who was facing an oncoming cable car at Green and Hyde streets as the crowd yelled "Go Batkid!" San Francisco resident Jesse Garcia came to watch the spectacle that was only three blocks away from his home and said it was great to see the community come out to support Miles.

RAW VIDEO: Batkid Jumps Into Action to Save Damsel in Distress

RAW VIDEO: Batkid Nabs the Riddler

RAW VIDEO: Batkid Receives Key to San Francisco

"I think it's phenomenal that kids still believe in superheroes," Garcia said. Miles untied the damsel, who had been tied to a green box filled with question marks by the "The Riddler," one of Batman's villains. Danielle Luscombe, a friend of Miles' family, said the boy did a great job in the rescue.

"It's just really impressive. It's great to see his wish come true," Luscombe said. People also crowded around the Financial District as the duo entered a bank at 550 Montgomery St. to look for the Riddler. Inside they found the famed villain, who tried to steal jewelry and money but Miles locked him in a barred room with nowhere to escape.

With two rescues down, the pair enjoyed a lunch at Burger Bar overlooking Union Square and watched a flash mob performing to Journey's "Don't Stop Believin'" in yellow and black clothing. The crowd then alerted Miles of the kidnapping of San Francisco Giants mascot Lou Seal by Batman's other archrival, "The Penguin," and the pair made their way to AT&T Park.

After a serious of obstacle courses at the park's promenade level, Miles slid down the Coca Cola bottle slide to find "The Penguin" at the end. Lou Seal was found tied up to a batting cage nearby at a small baseball diamond for children and Miles came to the rescue and set the mascot free.

Batman and Batkid then arrived to City Hall, where Miles proudly waved a fist in the air as hundreds of people cheered him on with a hero's welcome as he stood on stage at Civic Center Plaza. A plane flew overhead with the message "Wishes do come true SF Batkid." San Francisco Mayor Ed Lee welcomed everyone to Gotham City Hall and thanked Miles for all his hard work. Lee also presented Miles with a huge gray key to Gotham City, a framed proclamation and an advanced issue of Saturday's "Gotham City Chronicle" with the headline "Batkid Saves City."

Lee also declared today as Batkid Day throughout the city.

"While we wish we can erase the pain your family has experienced, we hope this is an experience you'll remember forever," Lee said.

U.S. Attorney Melinda Haag introduced herself as the prosecutor of Gotham City and thanked Miles for helping the U.S. Department of Justice capture "The Riddler" and "The Penguin," two bad guys they've been trying to arrest for years, she said.

PHOTOS: Batkid Saves Gotham

In a statement, Haag said Edward E. Nigma, also known as "The Riddler," and Oswald Chesterfield Cobblepot, also known as "The Penguin," were charged with multiple counts of conspiracy and kidnapping.

She presented Miles with a framed formal indictment listing the villains' charges. "We hope because of you they'll be spending a long, long time in jail," Haag said. Social media also buzzed about Miles' crime-fighting day with the hashtag "#sfbatkid."

President Obama also joined in on the action and posted a video on Vine with the message "Way to go Miles, way to save Gotham."

FBI Special Agent in Charge Dave Johnson also announced Miles' appointment as Deputized Junior Special Agent in addition to a FBI bag with credentials and jacket. Suhr, the police chief, expressed his "deepest gratitude for outstanding bravery" to Miles and presented him with a $10,000 check from Kid Monarch Clothing Company, which designed "Batkid" T-shirts with sales benefiting the Make-A-Wish Foundation.

Walnut Creek resident Brianna Hall was at City Hall with her son, 5-year-old Henry and daughter, 3-year-old Eme.

Hall said Henry is a big fan of Batman and owns many costumes. His outfit bore the Batman logo from head to toe, including his socks. San Jose resident Karina Gomez was with her daughter Kassaundra Ramirez watching the presentation at City Hall. Ramirez, 10, was born with a cardiac problem and three years ago, the Make-A-Wish Foundation helped fulfill her wish of becoming famous with activities including singing lessons, a photo shoot, music video and debut party.

The mother and daughter were supporting Miles today because they understand what his family has gone through. "It's good to know there's still good people out there," Gomez said.