The Hungarian Olympic medal drought in water polo is finally over.

Hungary secured its first-ever medal in women’s water polo with a 11-9 victory over longtime rivals, the Russian Olympic Committee, in the bronze-medal game on Saturday.

In the final minutes, Anna Illes scored to give Hungary a single-goal advantage and goalkeeper Alda Magyari scored on an empty net from long range with just four seconds left to seal the win.

Magyari finished with 10 saves and Vanda Valyi led Hungary with three goals.

As a result, Hungary, which had finished fourth in three consecutive Olympics before Tokyo, is going home with the bronze medal.