and by the end of the period, the Latin, French and English word "Scot" could be used for any subject of the Scottish king. Scotland's multilingual Scoto-Norman monarchs and mixed Gaelic and Scoto-Norman aristocracy all became part of the "Community of the Realm", in which ethnic differences were less divisive than in Ireland and Wales. This identity was defined in opposition to English attempts to annexe the country and as a result of social and cultural changes. The resulting antipathy towards England dominated Scottish foreign policy well into the fifteenth century, making it extremely difficult for Scottish kings like James III and James IV to pursue policies of peace towards their southern neighbour. In particular the Declaration of Arbroath asserted the ancient distinctiveness of Scotland in the face of English aggression, arguing that it was the role of the king to defend the independence of the community of Scotland. This document has been seen as the first "nationalist theory of sovereignty". Late Middle Ages The late Middle Ages has often been seen as the era in which Scottish national identity was initially forged, in opposition to English attempts to annexe the country, led by figures such as Robert the Bruce and William Wallace and as a result of social and cultural changes. English invasions and interference in Scotland have been judged to have created a sense of national unity and a hatred towards England which dominated Scottish foreign policy well into the 15th century, making it extremely difficult for Scottish kings like James III and James IV to pursue policies of peace towards their southern neighbour. In particular the Declaration of Arbroath (1320) asserted the ancient distinctiveness of Scotland in the face of English aggression, arguing that it was the role of the king was to defend the independence of the community of Scotland and has been seen as the first "nationalist theory of sovereignty". The adoption of Middle Scots by the aristocracy has been seen as building a sense of national solidarity and culture between rulers and ruled, although the fact that North of the Tay Gaelic still dominated, may have helped widen the cultural divide between Highlands and Lowlands. The national literature of Scotland created in the late medieval period employed legend and history in the service of the crown and nationalism, helping to foster a sense of national identity at least within its elite audience. The epic