Pigs enjoy rolling in mud in their leisure time. A 2x3 block area at minimum is recommended.
You need a dirt block and one water bucket.
Effect in game
Your walking speed is reduced by 80%
When pigs go on mud, they will roll in and become dirty