Scottish society in the Middle Ages is the social organisation of what is now Scotland between the departure of the Romans from Britain in the fifth century and the establishment of the Renaissance in the early sixteenth century. Social structure is obscure in the early part of the period, for which there are few documentary sources. Kinship groups probably provided the primary system of organisation and society was probably divided between a small aristocracy, whose rationale was based around warfare, a wider group of freemen, who had the right to bear arms and were represented in law codes, above a relatively large body of slaves, who may have lived beside and become clients of their owners.