"Mark is awesome. We had a blast working on Pain and Gain and I'm so fired up to be back working with him. An actor of his caliber is the perfect guy to re-invigorate the franchise and carry on the Transformers' legacy," Bay said.
The news comes shortly after Bay had denied rumors that Wahlberg would be part of the movie's anticipated installment, but clearly the idea resonated with him.
"I squashed a rumor that was on the internet last week. It was about Mark Walhberg. Mark was rumored to be staring in Transformers 4. We are working on another movie together, not T4," he wrote on his website.
"I had such a great time working with Mark on Pain and Gain, and he gave such a great performance – well let's say that very internet chatter gave me some ideas. We are at the inception of our story process right now on T4. Let's say some ideas are gaining traction with me and my writer – so I'm here to say thanks internet chatter."
The film is slated to hit theaters June 27, 2014.