Learn about this topic in these articles:

role in “The Comedy of Errors”

...for his brother and is chased by a goldsmith for nonpayment. He and his servant hide in a priory, where they observe Egeon on his way to execution and recognize the priory’s abbess as their mother,
Emilia. The play ends happily with Egeon’s ransom paid, true identities revealed, and the family reunited.