A complementary filter is a sensor fusion technique that fuses the benefits of two or more sensors.
Here, an accelerometer and gyroscope packaged in an IMU (LSM6DSO32) are fused to estimate roll and pitch angles.
Source: Phil's Lab: Complementary filter