A man is celebrating after winning a race.