Canada finished pool play with a 31-12 win over Japan to help them claim a spot in the Cup quarter-finals at the men's World Rugby Sevens event in London.

A first-half hat trick from Adam Zaruba gave Canada a 19-5 lead heading into the second half.

Jake Thiel (<a href="https://twitter.com/JakeThiel1?ref_src=twsrc%5Etfw">@JakeThiel1</a>) puts it away for <a href="https://twitter.com/RugbyCanada?ref_src=twsrc%5Etfw">@RugbyCanada</a> at the <a href="https://twitter.com/hashtag/London7s?src=hash&ref_src=twsrc%5Etfw">#London7s</a> as they defeat Japan 31-12<br><br>Our coverage continues right here all weekend 👉<a href="https://t.co/EGmwWd9Li4">https://t.co/EGmwWd9Li4</a> <a href="https://t.co/sqy3gA8n0t">pic.twitter.com/sqy3gA8n0t</a> —@CBCOlympics

Justin Douglas and Jake Thiel scored a try each in the second half to put the finishing touches on the win over the Japanese.

WATCH | Adam Zaruba powers Canada to win over Japan:

Watch Canada battle Japan at the World Rugby Sevens Series in London, England 22:13

South Africa's 40-21 victory over Argentina sealed Canada's spot in the Cup quarter-final, which will come against the U.S. on Sunday at 6:42 a.m. ET.

WATCH | Canada scores 14-12 win over Argentina:

Watch Canada take on Argentina at the World Rugby Sevens Series in London, England 19:32

Canada began its Saturday with a narrow win over Argentina, before the Canadians were outscored 31-0 in the second half against South Africa on the way to a 45-14 defeat.

WATCH | Canada can't hold off Blitzboks:

Watch Canada take on South Africa at the World Rugby Sevens Series in London, England 19:38

A patient Canadian squad scored a try to enter the half tied 14-14 with the two-time defending Series champions but South Africa responded early in the second half, taking advantage of a high pass by its opponent that curled too much, and the rout was on.

Luke McCloskey ties it up for <a href="https://twitter.com/RugbyCanada?ref_src=twsrc%5Etfw">@RugbyCanada</a> 14-14 at the end of the 1st half<a href="https://twitter.com/hashtag/London7s?src=hash&ref_src=twsrc%5Etfw">#London7s</a><br>Watch: <a href="https://t.co/PWQWBkbMvB">https://t.co/PWQWBkbMvB</a> <a href="https://t.co/Fjr5CJfGPc">pic.twitter.com/Fjr5CJfGPc</a> —@CBCOlympics

With the win over Argentina, the South Africans became the only team to win their pool at each event this season.