The main way to end or succeed in a raid is to defeat all the pillagers and raiders attacking the village. However, that’s not the only way. You can also wait it out. The event expires after 40 minutes if any raiders are still standing. You can also use the Peaceful mode switch trick, outlined above, to manually force a raid to end.