The match – the 40th between the two teams over the decades – is to take place in the Wanda Metropolitano stadium, the home of Atletico Madrid, at 7.30 p.m. local time (6.30 p.m. Lisbon time).
This will be Portugal's first officially confirmed game to prepare for the Euro2020 finals, and the first match against Spain since the two teams played each other in the first group B game in the 2018 World Cup finals in Russia – a match that ended in a 3-3 draw, with Cristiano Ronaldo scoring a hat-trick.
Portugal’s men’s football team have an overall negative record against Spain, with just eight wins in 39 matches, seven of them in the 31 friendlies played between the two sides.
At Euro2020, which is to take place between 12 June and 12 July, reigning champions Portugal are to face Germany and France in Group F, as well as one of the teams in the play-off stage.
Spain, meanwhile, are in Group E with Poland and Sweden, as well as another play-off qualifier.