Messi was only called upon by coach Lionel Scaloni to play the final quarter of an hour as he made his comeback from knee and hamstring issues that saw him miss Paris Saint-Germain’s last two matches.
Di Maria’s sublime early finish at the Campeon del Siglo stadium in Montevideo was the difference between the sides in a match dominated by Uruguay.
The result means Argentina — who are unbeaten in 26 matches — will qualify for the World Cup finals if they beat Brazil on Tuesday and any one of Colombia, Chile or Uruguay fail to win.
“This team has great courage and when you don’t play well, you still have to win,” said Argentina goalkeeper Emiliano Martinez.
Winning today was a huge step. We deserve it because we work very hard.”
The defeat left Uruguay in a World Cup play-off spot, behind Colombia and Chile in the final two automatic qualification position on goal difference.
Nahitan Nandez should have given Uruguay a fifth minute lead after Argentina failed to deal with a long throw into the box.
A ricochet saw the ball land at Nandez’s feet seven yards from goal and while Martinez did well to come out quickly and spread himself, Nandez’s finish was poor and straight at the Aston Villa stopper.
Uruguay were made to pay two minutes later as Paulo Dybala robbed a dawdling Joaquin Piquerez just outside the box and passed inside for Di Maria to stroke a glorious shot into the top corner.
It was Argentina’s only shot at goal in the first half.