GLASGOW, Scotland — Argentina reached its first Davis Cup final since 2011 on Sunday after Leonardo Mayer sealed a 3-2 victory over defending champion Britain by beating higher-ranked Dan Evans.

Evans would have expected to face Juan Martin del Potro, who beat Andy Murray on Friday, in the decider but the former U.S. Open champion did not want to risk his fragile body after wrist injuries earlier in the year.

The 53rd-ranked Evans still went down 4-6, 6-3, 6-2, 6-4 to Mayer, who is ranked 114th.

Argentina is through to its fifth Davis Cup final when it will be looking to win the top team prize in tennis for the first time. It faces Croatia in the final.

Earlier Sunday, a commanding performance from Britain’s Andy Murray ensured that the semifinal would go to the deciding match.

Murray, who appeared to strain a muscle in the third set, breezed past Argentina’s Guido Pella in straight sets in front of a partisan crowd in Glasgow, winning 6-3, 6-2, 6-3.

It drew Britain level again after losing the opening round of singles matches to trail at the start of the weekend.

Murray was also involved in his team’s doubles victory on Saturday, in which he played with his brother Jamie. They beat Del Potro and Mayer in four sets to trail 2-1 overnight.