Hungary will attend a Ukraine peace summit in Switzerland next week despite Budapest strengthening its ties with Moscow.
Foreign minister Peter Szijjarto confirmed at an economic forum in St Petersburg that his country would be represented at the summit on 15 June.
The summit is aimed at building support among dozens of countries for a 10-point peace proposal from Volodymyr Zelenskyy, which includes Russian troops fully withdrawing from Ukrainian territory.
Russia has not been invited, and has branded it a waste of time.
Hungary, an EU and NATO member, has often pushed back against sending Western aid to Ukraine and has been critical of sanctions on Russia.
Vladimir Putin and Hungarian Prime Minister Viktor Orban also reaffirmed their commitment to bilateral ties during a meeting in October.