Jennifer Garner has revealed what workouts she did to get ‘Marvel fit’ for the smash hit Deadpool & Wolverine.

The 52-year-old actress — who reprised her role as Elektra for box office smash titan — appeared on Instagram on Monday to show her 16.4 million followers her intense regimen.

She shared a montage of her gym sessions in a reel, and wrote in her caption that before taking on the role, she was ‘fit, but not @marvel fit.’

The mother-of-three — whose ex-husband is Ben Affleck — added, ‘Other than trying to convince my kids’ preschool buddies that I was secretly a ninja, I hadn’t picked up Elektra’s sais since 2004.’

Her routine included boxing three times a week, Peloton rides and high intensity interval training (HIIT).

Jennifer Garner has revealed what workouts she did to get 'Marvel fit' for the smash hit Deadpool & Wolverine

Jennifer Garner has revealed what workouts she did to get ‘Marvel fit’ for the smash hit Deadpool & Wolverine

The 52-year-old actress ¿ who reprised her role as Elektra for box office smash titan ¿ appeared on Instagram on Monday to show her 16.4 million followers her intense regimen

The 52-year-old actress — who reprised her role as Elektra for box office smash titan — appeared on Instagram on Monday to show her 16.4 million followers her intense regimen

Sharing a montage of her gym sessions in a reel, she wrote in the caption that before taking on the role: 'I was fit, but not @marvel fit'

Jennifer as Elektra in 2003's Daredevil

Sharing a montage of her gym sessions in a reel, she wrote in the caption that before taking on the role: ‘I was fit, but not @marvel fit’

The Alias alumna described the moment the idea for her to make a cameo in the movie was sparked.

She said Shawn Levy and Ryan Reynolds, who share ‘a crazy artistic kismet,’ ‘gave each other this look they have that can communicate an idea, 20 pages of dialogue, nuclear codes.’

To prep for the gig, the silver screen siren said, ‘My bestie and OG stunt double @shaunaduggins and I amped up our training, led by @bethjnicely at @thelimitfit: 1x/day, plus whatever homework she assigned for a second workout.’

The gym schedule also included ‘boxing 3x/ week with @flvcothefuture from @matchroomxchurchillgym. . And lots and lots of @onepeloton’s @becsgentry.’

Jennifer recalled, ‘We had #SuperHeroSummer over here, twirling sais in the backyard and laughing at our sore old bodies.’

On a more sentimental note, she said: ‘I didn’t know that Elektra and I needed an ending, but Shawn and Ryan did.

‘They are gifted in many ways, but seeing and elevating people around them is at the top of the list.’

Recalling her time shooting the cameo, she continued: ‘Shauna and I were in heaven on set with them, with my old pal @thehughjackman, @dafnekeen, @channingtatum, @realwesleysnipes.’

Wrapping up the message, the Adam Project star gushed, ‘Shooting the fight was so fun, being there all together — truly like a dream.

‘I’m proud of my friends and grateful to be up there with them. Thank you doesn’t cut it, guys, but it’s a good placeholder until I figure out what does.’

Garner reposted an upload from Levy, who helmed the film, in her Instagram Stories.

Her routine included boxing three times a week, Peloton rides and high intensity interval training (HIIT)

Her routine included boxing three times a week, Peloton rides and high intensity interval training (HIIT)

The mother-of-three added, 'Other than trying to convince my kids¿ preschool buddies that I was secretly a ninja, I hadn¿t picked up Elektra¿s sais since 2004'

The mother-of-three added, ‘Other than trying to convince my kids’ preschool buddies that I was secretly a ninja, I hadn’t picked up Elektra’s sais since 2004’

To prep for the gig, the silver screen siren said, 'My bestie and OG stunt double @shaunaduggins and I amped up our training'

To prep for the gig, the silver screen siren said, ‘My bestie and OG stunt double @shaunaduggins and I amped up our training’

Garner even incorporated a season element into her preparation as she substituted pumpkins for weights

Garner even incorporated a season element into her preparation as she substituted pumpkins for weights

The Adam Project star gushed, 'Shooting the fight was so fun, being there all together ¿ truly like a dream'

The Adam Project star gushed, ‘Shooting the fight was so fun, being there all together — truly like a dream’

Sharing a photo of the cast dressed as their characters, he wrote in a social media caption: ‘If there’s a Director heaven, I think I found it. #deadpoolandwolverine.’

Deadpool & Wolverine debuted in theaters July 26 and earned $205 million domestically and $233.3 million internationally.

Following the successful opening weekend, Hugh Jackman wrote in an Instagram caption to his 32.6 million followers, ‘Wolverine and Deadpool is the #1 movie in the world. Thank you ALL!’

Ryan followed suit, using his Instagram Stories to write, ‘This is kind of hard to process. But thank you to everyone who went to see the film this weekend… wow.’