Answer
Through his marriage to Margaret of Denmark, James III gained control over the strategically significant Orkney and Shetland islands, which had previously been under Norwegian rule. Orkney and Shetland were significant due to their location, serving as vital naval bases and trading hubs in the North Atlantic. Furthermore, securing these territories strengthened Scotland's position in regional politics, expanded its maritime reach, and enhanced its economic prosperity.