Patrol

Patrols, known as pillager patrols $$, are common naturally spawning groups of pillagers and vindicators.

Java Edition
Illager patrols spawn as a group of pillagers, totaling five all together. One of the pillagers will be the raid captain. The raid captain wears an ominous banner on its head. The other pillagers will follow the leader.

Bedrock Edition
Illager patrols spawn as a group of 2–5 illagers. On Easy and Normal difficulties, only pillagers will spawn, with one of the pillagers being the raid captain. On Hard difficulty, 80% of the illagers will be pillagers, while 20% of them will be vindicators. One of the vindicators or pillagers will be the raid's captain.

Java Edition
Illager patrols spawn in any biome (except Mushroom Fields and its variants) at light level 8 or lower, only at night, like monsters.

Illager patrols spawn naturally after the world age reaches 100 minutes (five in-game days), then after a delay between 10-11 minutes an attempt will be made to spawn an illager patrol (20% chance of success), repeating the delay and spawn attempts.

Bedrock Edition
Illager patrols spawn around 24–48 blocks away from the player (or more than 48 blocks away from the player if they are in a village) in, ,, , , and , biomes, as well as their variants on sand, grass block, podzol, coarse dirt or on snow. Although villages can generate in snowy tundra, illager patrols cannot spawn there. They can also spawn in giant tree taiga biomes, although villages cannot generate there. On Easy difficulty, illager patrols can only spawn at light level 0–7 on the surface. On normal and hard difficulty, illager patrols can spawn in any light level.

Illager patrols spawn naturally after the world age reaches 100 minutes (five in-game days), then after a delay between 5–6 minutes an attempt will be made to spawn an illager patrol (20% chance of success), repeating the delay and spawn attempts.

Behavior
Illager patrols will seek villages, wander around, and attack nearby players, villagers(adult villagers), iron golems, and wandering traders.

The patrol captain always drops an ominous banner upon death.

Bad Omen
Upon killing a patrol captain, the player receives the effect for 100 minutes (displayed as infinite on Java Edition), which has no consequences unless the player enters a village. Upon entering a village, the effect is removed from the player and a raid spawns nearby after about five seconds. In Java Edition, the level of the Bad Omen determines the chance of enchantment on raid member's weapons, and additional waves. The number of waves depends on the difficulty.