Hungary and Slovakia will play their next Euro 2020 qualifiers behind closed doors after both national federations were sanctioned by European soccer's governing body UEFA on Monday for racist behaviour by their supporters.

Riot police were called into action in Budapest after trouble erupted in the stands during the Euro 2020 Group D qualifier between the teams on Sept. 9, which Slovakia won 2-1.

- Euro 2020 qualifying: All you need to know

In addition to the racism charge, the Hungarian federation was also sanctioned for their fans throwing objects and setting off fireworks and was fined €67,125 ($73,710). Slovakia's federation was fined €20,000.

Slovakia's next UEFA match is a Euro 2020 qualifier at home to Wales on Oct. 10 while Hungary's qualifier against visiting Azerbaijan on Oct. 13 will also be played behind closed doors.

A statement from the Wales Football Association read: "The FAW is incredibly disappointed as the impact of this decision will harshly affect our supporters who have already incurred the costs of travel and accommodation to attend this match to support the Wales national neam."

Slovakia and Hungary both have nine points from five games, one point behind Croatia and three ahead of Wales.

The Romanian Football Federation was fined €83,000 and ordered to play its next two games behind closed doors for failing to control fans in Group F games with Spain and Malta.

Romania was sanctioned for pitch invasions, setting off fireworks, throwing objects and racist behaviour by their supporters, including offensive banners and chants.

Romania's next home game is against Norway on Oct. 15 but UEFA said in a statement that the punishment related to the second match was suspended for one year.

Romania are third in the standings with 10 points from six games, eight adrift of leaders Spain and and one behind Sweden.

The top two qualify for next year's finals.