Meaning: when something you said turns out to be wrong
Example: If you say that someone is wrong and stupid and it turns out that they were correct and you were the person who was wrong or stupid you have to eat your own words. This usually means you have to admit your mistake and apologize to someone.
See this Idiom in a story: The Most Unruly Class in the World