Louis and Niall will be pitted against each other at the upcoming 2016 Soccer Aid charity tournament.
The Irish singer has joined the Rest of the World celebrity soccer team as assistant manager, while Louis will be playing for England at the game, which takes place at Old Trafford, Manchester on June 5 and will be raising money for UNICEF.
Leicester City manager Claudio Ranieri will lead the Rest of the World team, which also features Welsh actor Michael Sheen, celebrity chef Gordon Ramsay and former Westlife singer Nicky Byrne, plus professional players.
Meanwhile, Louis' England squad is led by British pop star Robbie Williams, who will both play and serve as assistant manager alongside former Chelsea manager Jose Mourinho. They will be joined by singer Olly Murs, former JLS star Marvin Humes and comedians Paddy McGuinness, Jack Whitehall and John Bishop.
Louis will be hoping for more luck than in a previous charity football match when he was forced to limp off and ended up vomiting in the full glare of the TV cameras after being flattened by Aston Villa star Gabriel Agbonlahor.
Niall and Louis are both keen football players. Niall previously trained with Chelsea as he was recovering from a knee injury in 2014, and Louis played for Doncaster Rovers in a reserve match as well as attempting a failed takeover of the club with former chairman John Ryan.