It happened during the game between Brighouse Town and Shaw Lane.
A footballer has died during a game at Brighouse on Monday night.
It's understood Daniel Wilkinson, who was playing for Shaw Lane AFC against Brighouse Town FC, suffered a cardiac arrest.
It happened during their Evo-Stik League Doodson Sports League Cup preliminary round game.
Thank you all for your wishes, thoughts and especially prayers for our Daniel Wilkinson . We have no further news at the moment— Shaw Lane AFC (@SLAquaFC) September 12, 2016
A statement on Shaw Lane's Facebook page from chairman Craig Wood said: "It's with great sadness that we have to announce the tragic loss of Daniel Wilkinson who has sadly passed away after collapsing on the pitch during the game last night, our thoughts and prayers are with him family and friends at this time.
"The club would like to thank everyone for their heartfelt messages and thoughts that we have received throughout the night. There are no more words at this time.