Nyl Yakura helped Canada beat Brazil in the men's final ©Getty Images

Canada's men retained their title at the Pan Am Male and Female Cup, but the women relinquished their crown after going down 3-0 to the United States in the final.

Brian Yang, who starred against Mexico in the semi-final, had a day to forget versus Brazil, losing to Ygor Coelho 21-15, 10-21, 14-21.

However, BR Sankeerth made up for Yang’s mistakes in the second match against Jonathan Matias with a hard-fought 23-25, 22-20, 22-20 victory.

It was Donnians Oliveira's chance to put the Brazil in the lead next and he did so in style, beating Victor Lai 12-19, 18-21, 21-13.

Canadian doubles pair Nyl Yakura and Yang then beat Fabricio Farias and Francielton Farias 21-17, 21-19 sending the final to a deciding fifth match.

Kevin Lee and Ty Alexander Lindeman of Canada stepped up when it mattered the most, producing a convincing 21-18, 21-9 win to lift the Pan Am Cup.

The women’s final was a straightforward affair comparatively, with the US posting a comfortable 3-0 win.

Lauren Lam got the better of Wendy Zhang in a tight encounter that ended 21-17, 18-21, 22-20 in Lam's favour.

Jennie Gai followed with a morale-crushing 21-5, 21-6 win, brushing past Camille Leblanc.

Natalie Chi completed the win with a routine 21-15, 21-5 triumph over Eliana Zhang.

Mexico secured the men's bronze medal with a 3-0 victory over the US, while Brazil's women secured bronze against Guatemala by the same scoreline.

The victories qualify the US for this year's Uber Cup and Canada's men for the Thomas Cup.