Erik ten Hag's first game in charge of Manchester United at Old Trafford will be against Rayo Vallecano on 31 July.
Rayo Vallecano, who are from Madrid, finished 12th in LaLiga last season and own two former Manchester United players in Radamel Falcao and Bebe.
The game will conclude Manchester United's pre-season preparations prior to the start of the 2022-23 Premier League season which kicks off on August 6.
Erik ten Hag's first home game in charge of Manchester United will be against Rayo Vallecano
Ten Hag and his Manchester United side will tour Thailand and Australia this summer before heading to Oslo for a game against Atletico Madrid in the Norway capital before returning home for the fixture against Rayo Vallecano.