Meaning of the word "Put your foot in it" in English

What does "Put your foot in it" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

Put your foot in it

US /pʊt jʊər fʊt ɪn ɪt/
UK /pʊt jɔː fʊt ɪn ɪt/

Idiom

to say or do something accidentally that embarrasses or offends someone

Example:
I really put my foot in it when I asked her about her ex-husband, not knowing they had just divorced.
He's always putting his foot in it, saying the wrong thing at the wrong time.