What is the meaning of the word "fouled"?

Definitions:

  1. made dirty or foul copy to clipboard adjective
    • We washed the soot off the fouled building. copy to clipboard
  2. tangled, especially referring to a ship's lines copy to clipboard adjective
    • The fouled rigging had to be cut off. copy to clipboard