Christchurch triathlete Andrea Hewitt has won the women's World Championship Series race in Madrid in a photo finish.
Hewitt was judged to have finished just centimetres ahead of Lisa Norden of Sweden.
New Zealand's top ranked triathlete Sam Warriner fought back from a poor swim to finish in seventh place, and Nicky Samuels of Wanaka was 14th.
The New Zealand men failed to fire.
Kris Gemmell, who withdrew a third of the way through the cycling leg, had not shaken the lingering effects of a bout of food poisoning from the previous few days.
Tony Dodds struggled on a little longer, but also pulled out before completing the bike section, finding the top level pace too tough.
Britain's Alistair Brownlee took out the race.