Holland beat former One Direction singer Niall Horan, who ran him close with a drive of 301 yards.
He was joined by other celebrities including Eddie Hearn, Sam Quek, Ronan Keating, Harry Redknapp, James Nesbitt and Dan Walker.
Irish golfer Harrington, who is leading Team Europe at the Ryder Cup later this month as they take on Team USA in Wisconsin, jokingly offered Holland a place in the competition if he could land on the green.
Holland gave Harrington a scare, only narrowly missing the shot.
“You had me worried,” the three-time major win joked.
Holland will reprise his role as Peter Parker in Spider-Man: No Way Home, which is set for release in December.
Spider-Man star Tom Holland shows off his swing with golf competition win