Calvin Harris has set the record straight about Taylor Swift in front of millions of fans.

The producer, who split from the songstress last month, went off via Twitter it came out that one of her reps “confirmed” with People magazine that Swift actually penned his hit with Rihanna This Is What You Came For under the alias Nils Sjoberg.

It didn’t take long for Harris to share his truth on what really happened. And he blasted Swift while doing so.

He retweeted the article and added, “And she sings on a little bit of it too… Amazing lyric writer and she smashed it as usual…”

But things quickly went left when he continued with, “I wrote the music, produced the song, arranged it and cut the vocals though. And she initially wanted to keep it a secret, hence the pseudonym.”

He went on to tweet, “Hurtful to me at this point that her and her team would go so far out of their way to try and make ME look bad at this stage though…”

He then referenced her new romance with actor Tom Hiddleston, who is said to have started dating Swift just a couple of weeks after her breakup with Harris.

“I figure if you’re happy in your new relationship you should focus on that instead of trying to tear your ex bf down for something to do,” he added before pointing out her past beef with Katy Perry. “I know you’re off tour and you need someone new to try and bury like Katy ETC but I’m not that guy, sorry. I won’t allow it.”

He ended with, “Please focus on the positive aspects of YOUR life because you’ve earned a great one… God bless everyone have a beautiful day.”

See his tweets below & keep up with Enstars for the latest.