Answer
Edgar, the Scottish king, entered into a treaty with Magnus, the Norwegian king. This agreement, known as the Treaty of Perth, was signed in 1266 and established the boundary between Scotland and Norway. The treaty also included provisions for the peaceful resolution of disputes and the protection of trade between the two kingdoms.