expression

To run afoul of someone or something.

Theme: conflict Keyword: rule

means

To come into conflict with a person, authority or rule (especially American).

also

To fall foul of someone or something.

Example

The business ran afoul of local planning regulations.