The newly-formed Kirkheaton Rovers travelled to East Yorkshire to take on Flamborough FC.
The match was in aid of the Royal National Lifeboat Institution (RNLI).
Rovers manager Michael Craven said: “Ian Deakin, one of the lads from Flamborough, asked if I could bring a team over. I was more than delighted to go over and help raise funds for the RNLI.
“My wife Susan once had an accident on Flamborough beach and had to be airlifted to Hull Hospital. Both the rescue services do a fantastic job.”
Kirkheaton Rovers won the game 7-2 thanks to a hat-trick from Daryl Senior and goals from Jay Goodar, Terry Murphy, Lee Lucas and Anthony Agostini.
Captain John Lawton said: “It was a brilliant day and the lads were proud to help raise funds for charity.
“We played well and certainly flew the flag for Kirkheaton. We also made some new friends, who we are going to keep in touch with and invite over to our place.”