Duty in The Comedy of Errors is the stuff of wives, husbands, servants, citizens, parents, and children. Basically, everyone owes some duty to someone else, and each struggles to anticipate the others’ needs and do what’s expected. In the most explicit sense, the women and servants are subjected to the men, and it is their duty to serve the men’s needs. Beyond the duty of subordinates, marriage charges men with the duty to be faithful husbands. Egeon, the lost and despairing father, illustrates the duty men have toward their families. Egeon’s inability to protect and keep together his family is enough to make him feel like a worthless man. When characters feel they are not fulfilling their duty, self-doubt and shame result.
Adriana doesn’t actually feel any duty to her husband. She rankles at being a subservient wife, and her decision to have him bound and gagged and locked in the basement "for his own good" is really just her way of getting back at him for what she presumes to be his unfaithful behavior.