Society is presented as an interesting force in The Epic of Gilgamesh. It is a rather traditional society, with men and women handling different roles. Gilgamesh himself rules over the ancient Sumerian city Uruk, which is the main social and cultural setting of the story.
However, society is not represented as perfect. Gilgamesh is initially a corrupt figure who bullies his subjects into doing whatever he wants them to, whether it's fighting him or sleeping with him. Though society has rules, those in power are free to trespass them.
Society is contrasted with nature, represented by the wild man Enkidu. He initially shuns society, living with the animals, until he is "civilized" by an extended sexual encounter with a woman. Then he becomes a social being and eventually Gilgamesh's dearest friend. He challenges Gilgamesh's bullying and ultimately helps him grow into a better person.
So, society is a double-edged sword in Gilgamesh: it can corrupt as well as enlighten and ennoble.