The aristocracy is a social class that a particular society considers its highest order. In many states, the aristocracy included the upper class of people (aristocrats) with hereditary rank and titles. In some, such as ancient Greece, Rome, and India—aristocratic status came from belonging to a military caste, although it has also been common, notably in African societies, for aristocrats to belong to priestly dynasties. Aristocratic status can involve feudal or legal privileges. They are usually below only the monarch of a country or nation in its social hierarchy. In modern European societies, the aristocracy has often coincided with the nobility, a specific class that arose in the Middle Ages, but the term "aristocracy" is sometimes also applied to other elites, and is used as a more generic term when describing earlier and non-European societies.