He cemented a peace treaty with England by marrying Margaret Tudor, the daughter of Henry VII the so-called Marriage of the Thistle and the Rose but this did not prevent him from making a raid into England in 1513.
The peace treaty with England lasted for several decades.