What is an anti-aliasing filter?

Moiré is caused by high-frequency repetitive patterns. Some camera sensors struggle to record the details of these patterns correctly.