Watch: Martin O'Malley sings a Taylor Swift song

Martin O'Malley's appearance on "The View" Tuesday concluded with the Democratic presidential candidate showing off his musical chops.

"Katy Perry, I'm told, is doing a benefit concert for one of my opponents in Iowa," O'Malley said. "So in response, I thought I'd offer this up for Taylor Swift."

O'Malley then brought out his guitar and began playing and singing Swift's "Bad Blood."

Perry will be performing at the Jefferson-Jackson Dinner, an event for Hillary Clinton supporters, on Oct. 24 in Des Moines, Iowa.

O'Malley's song choice and Perry's endorsement of Clinton mirrors a publicly passive aggressive feud between Swift and Perry. It is widely believed that Swift wrote "Bad Blood" after a fallout with Perry, a former friend and member of Swift's "squad."