Question: What historical event has Bothwell Castle, the location of the Uddingston RFC, had a key role in?

Context paragraphs:
Bothwell Castle Cricket Ground: Bothwell Castle Cricket Ground is a cricket ground in Uddingston, Scotland, and is named after the nearby Bothwell Castle.  The first recorded match held on the ground came in 1902 when Uddingston played a friendly against Gloucestershire.  110 years later the ground held its first List A match when Scotland played Glamorgan in the 2012 Clydesdale Bank 40.  A further List A match was held there in that same competition, with Hampshire the visitors.  Bothwell Castle was given these games due to damage caused by vandalism at Mannofield Park in Aberdeen, which was originally to host the two matches.

Lord of Liddesdale: The Lord of Liddesdale was a magnate in the medieval Kingdom of Scotland; the territorial lordship of Liddesdale was first created by David I of Scotland, perhaps between 1113 and 1124 when the latter was Prince of the Cumbrians.  From an early period the caput of the lordship was Hermitage Castle, the "strength of Liddesdale".  King David gave the territory to Ranulf de Soules, a knight from the Cotentin Peninsula.  It was forfeited by the Soulis (de Soules) family in the 14th century and eventually passed to the Douglases, only to be lost to the Hepburns by order of James IV.  Archibald Douglas, 5th Earl of Angus was renumerated for this loss by the lordship of Bothwell Castle, although the Hepburn Earls of Bothwell retained the territorial designation

Uddingston East railway station: Uddingston East railway station served the town of Uddingston in South Lanarkshire on the Glasgow, Bothwell, Hamilton and Coatbridge Railway between Shettleston and Hamilton.

Group Domain of Interpretation: Group Domain of Interpretation or GDOI is a cryptographic protocol for group key management.  The GDOI protocol is specified in an IETF Standard, RFC 6407, and is based on Internet Security Association and Key Management Protocol (ISAKMP), RFC 2408, and Internet Key Exchange version 1 (IKE).  Whereas IKE is run between two peers to establish a "pair-wise security association", GDOI protocol is run between a group member and a "group controller/key server" (controller) and establishes a security association among two or more group members.

Flemington, South Lanarkshire: Flemington was a small mining community on the outskirts of Uddingston.  It existed from the early 1900s until the late 1930s and was located next to the mainline railway line, just off the road that links Blantyre to Uddingston, near Bothwell Castle.  Once the mining ceased the village, like many others, ceased to exist and all that remains are the foundations of the pit houses.

Reel to Real (U.S. TV series): Reel to Real is an American television series on the History channel, hosted by Steve Gillon.  "Reel to Real" shows a film based on a historical event, paired with a documentary about that same historical event.  Historians debate the historical correctness of the film during the intermission.  Films that have appeared on "Reel to Real" include "Battle of the Bulge", "Braveheart", "The Siege", "Bat 21", "Escape from Alcatraz", "The Last of the Mohicans", "Glory", "Unforgiven", "JFK", "Pearl Harbor", "Tobruk", "Pale Rider", "The Outlaw Josey Wales".

Uddingston RFC: Uddingston Rugby Football Club is a rugby union team, based in Uddingston, South Lanarkshire, Scotland.  The Club's home is at Uddingston Cricket and Sports Club, Bothwell Castle Policies, Castle Avenue, Uddingston.  G71 7HJ.  In addition to Senior 1st and 2nd XV teams the Club also has a thriving youth rugby section with players at every age group ranging from Primary 1 through to under-18.

Uddingston West railway station: Uddingston West railway station served the town of Uddingston in South Lanarkshire on the Glasgow, Bothwell, Hamilton and Coatbridge Railway between Shettleston and Hamilton.

Bothwell Castle: Bothwell Castle is a large medieval castle sited on a high, steep bank, above a bend in the River Clyde, in South Lanarkshire, Scotland.  It is located between Bothwell and Uddingston, about 10 mi south-east of Glasgow.  Construction of the castle was begun in the 13th century by the ancestors of Clan Murray, to guard a strategic crossing point of the Clyde.  Bothwell played a key role in Scotland's Wars of Independence, changing hands several times.

Bothwell: Bothwell is a conservation village in the South Lanarkshire council area of Scotland.  It lies on the north bank of the River Clyde, adjacent to Uddingston and Hamilton, 9 mi east-south-east of Glasgow city centre.

Supporting paragraphs: Uddingston RFC Bothwell Castle
Answer: Scotland's Wars of Independence