SCOTLAND captain John Barclay has agreed to join Edinburgh Rugby on a two-year deal from next season.

The 31-year-old flanker will leave Scarlets after five years at the club next summer, the side he skippered to the Pro12 title last season.

Barclay, who left Glasgow Warriors in 2013, has signed a deal until 2020 with the capital club.

“I spoke with Richard Cockerill and he outlined his vision for the future," said Barclay.

“Edinburgh as a club, and as a city, has a huge amount of potential and I can see what they are trying to do, so I’m looking forward to being a part of it. Scotland is home, so it’ll be great to come back and play at one of my home clubs.”

Cockerill added: “We’re delighted that a player of John’s calibre has chosen to join Edinburgh.

“He’s a terrific player, with a proven track record and his leadership values will only add to the strong culture we’re building at this club. John is committed to taking Edinburgh forward and his ambition to create a winning environment will benefit our squad immensely.”

The back-rower has 64 Scotland caps to his name and made his debut for the national team in 2007.

He assumed the captaincy under Vern Cotter for the Six Nations earlier this year after Greig Laidlaw sustained an injury and retained the position for the summer tour and autumn Tests.