Joe Schmidt and his men came to Cardiff with not just a heavy loss against England the previous week but also the fact that they last won in Cardiff in 2015.
No easy task going up against the team that is ranked number one in the world at home.
A great first half and a gutsy second gave the Irish the win thy needed after the humiliation that the English handed them.
Jacob Stickdale was the hero of the day crossing the whitewash twice in the first half. A penalty try in the second half gave Ireland a good enough lead to just hold off a different Wales side that came out in the second half.
Wales scored twice through Owen Lane and Rhys Patchell to make for an exciting final minutes for the home crowd.
Ireland opened the scoring with a penalty from Jack Carty.
Wales even things up when Evans slotted a penalty over. Ireland responded again this time with a try from Stockdale.
Wales was unable to convert some opportunities and just before halftime Stockdale got his second try.
Ireland again was pushing hard at the start of the second half but could not get pass some desperate defence from Wales.
Wales received a yellow card for Brown and he could not hold off a great scrum from the visitors which resulted in a penalty try.
This open the lead up to 22-3 for Ireland and Wales looked down and out.
Wales suddenly switch on and even though they only had 14 men on the field pressed the Irish back in their own twenty two which resulted in Lane try.
With Patchell coming on for Evans the home side started to get more ball on the front foot and was doing all the attack.
Ireland could have sealed the game there and then with ten minutes to go but Aki was judges tackling a player in the air which overturned Ringrose try.
Wales got their second try as they kept on pushing the Irish back into their own half. It was Patchell who put the five-pointer on the board for Wales and with four minutes to go it was all out attack for Wales.
Ireland was able to hold them out and take the win which was desperately needed.
It now looks that this loss for Wales will put them back to forth on the World Ranking with New Zealand back at number 1.
Tries: Lane, Patchell
Cons: Patchell 2
Yellow Card: Brown
Tries: Stockdale 2, Penalty try