Meaning of the word "run afoul of" in English

What does "run afoul of" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

run afoul of

US /rʌn əˈfaʊl ʌv/
UK /rʌn əˈfaʊl ɒv/
"run afoul of" picture

Idiom

to come into conflict or disagreement with; to violate a rule or law

Example:
He always seems to run afoul of the law.
The company might run afoul of environmental regulations if they don't update their systems.