Dublin and Kilkenny will contest this season's Leinster Hurling Final.
The Dubs put an end to Galway's summer with a 2-27 to 1-24 victory in Salthill.
David Burke's red card in the first half meant the hosts played the majority of the game with 14 men.
The Cats had one point to spare over Wexford after a 1-24 to 2-20 win with TJ Reid's penalty proving crucial in the end.
Despite the loss, Wexford go into the All Ireland series after a 3rd placed finish.
And it finished Antrim 4-22 Carlow 2-22 in the relegation play-off at Corrigan Park.
That means Antrim remain in the Leinster Championship while Carlow return to the Joe McDonagh Cup next season.