The race will be hosted at the Hungaroring track on the outskirts of Budapest.
Hungary will also host Formula 2 and Formula 3 contests over the weekend of July 29-31.
In a first, Nyirád (132 km southwest of Budapest) will host an FIA European Rallycross Championship race on May 21-22.
Hungarian National Auto Sport Association (MNASZ) chairman Gyárfás Oláh told public television that hosting the contest is "the first step" in the process of bringing a World Rallycross Championship race to the country.
"First we'll deal with the European championship race, and we hope that there will be a lot of Hungarian fans and Hungarian participants at the event," he said on news channel M1.
Hungary will host a 2022 FIA Truck Racing Championship race on June 11-12 and a 2022 FIA ETCR eTouring Car World Cup on June 10-12.
An FIA European Cup for Cross-Country Bajas race will take place in Hungary on August 5-7.
An FIA European Rally Trophy – Central Rally Trophy contest will be held in Hungary on November 11-13.