Xenia was an ancient Greek custom and ideal of hospitality. The rules of xenia were the domain of Zeus, king of the gods. Therefore, not obeying these rules could have disastrous consequences.
Guests could ask for hospitality at the house of a stranger and expect food and drink, a place to sleep, and protection. The amount of help they could receive and the length of time they could stay were dependent on the wealth of the host and what they were able to offer.
The host and guest would exchange gifts or stories, and formed a lasting friendship between their families.
In The Iliad, two warriors (Diomedes and Glaucus) meet on the battlefield but agree not to fight and instead exchange armour. This is because they realise that their families shared this guest-friendship (and because Diomedes wants Glaucus’ better armour).
Throughout The Odyssey, there are examples of xenia being observed and xenia being broken, as well as the punishments that come to those who break it.
Xenia going right
Examples of good xenia can be seen in Odysseus’ visits to Aeolus, the Phaeacians, and Eumaeus, as well as in Telemachus’ visits to Nestor and Menelaus.
Aeolus lets Odysseus and his men stay for a month, and gives them precious gifts when they leave. When Odysseus returns because his men have opened the bag of winds and blown them back off course, Aeolus refuses to help a second time. Odysseus has overstayed his welcome and the gods are clearly not on his side.
When Odysseus comes to Scheria, he implores the queen for xenia. They throw him a feast and athletic games and provide him with gifts. In return, Odysseus tells them his story.
Xenia going wrong
Examples of xenia going wrong and the punishments earned can be seen in many of Odysseus’ stops on his way home, as well as his return itself.
When Odysseus tries to invoke xenia on the island of the cyclopes, Polyphemus traps and eats his men. In return, Odysseus blinds him and escapes.
When Odysseus’ men come to Circe’s palace, instead of helping them she turns them into pigs. In return, Hermes helps Odysseus resist her magic and overpower her. From then, Circe lets Odysseus stay and provides for him and his men for a year.
The biggest example of this are the suitors back on Ithaca. They have overstayed their welcome, disrespected and attempted to kill Telemachus, and used up Odysseus’ wealth and resources. When Odysseus returns, he murders them all.