The match took place in Kaliningrad on Tuesday morning (AEST) and Morocco led twice, only for Spain to equalize on both occasions.

After picking only one point in their first two group stage matches, Morocco were eliminated from the tournament before the match against Spain.

"We knew well that it was going to be a difficult match against a strong team," Hierro said.

"They deserved much more at this tournament. Though they couldn't qualify from the group mathematically, we knew it was going to be difficult. Our first conclusion (after the match)? Even though we are top of the group, there is plenty of work ahead... We have conceded five goals at this tournament - it is bad. We need to face the truth," Hierro said.

He added that the video assistant referee (VAR) system has its pros and cons and the team were lucky to qualify top of the group and will need to cut out their errors as their upcoming matches will be even tougher.

Spain will play Russia in their round of 16 match in Moscow on July 1.