Tanak, who had arrived in North Wales on the back of victories in Finland, Germany and Turkey was leading Ogier by 41 seconds when he stopped at Stage 16 due to mechanical problems which forced him to retire from the race.
Ogier finished 5.5 seconds ahead of Toyota's Jari-Matti Latvala and a further 5.3 seconds in front of Esapekka Lappi.
Meanwhile, championships leader Thierry Neuville of Belgium finished in 8th place. The Belgian leads in the three-way championship race, 13 points ahead of Tanak and 23 ahead of Ogier.