1. Park the Mazda 6 on a level surface, apply the parking brake, and turn off the engine.
2. Loosen the lug nuts on the front wheels but do not remove them.
3. Raise the front of the Mazda 6 using ramps or a jack and support it securely with jack stands.
4. Remove the wheels from the front.
5. Locate the brake caliper: It's the metal housing that covers the brake pads and is mounted to the steering knuckle.
6. There will be two bolts that hold the caliper to the steering knuckle. Use a wrench to loosen and remove these bolts.
7. Once the bolts are removed, you can remove the brake caliper by gently prying it away from the brake rotor. Be careful not to damage the brake line or the rubber seal around the caliper piston.
8. Inspect the brake pads for wear or damage. If they need to be replaced, now is the time to do it.
9. Clean the brake caliper with a wire brush and brake cleaner.
10. Reinstall the brake caliper by sliding it over the brake rotor and installing the bolts you removed earlier. Tighten the bolts to the specified torque.
11. Reinstall the wheel and lower the car.
12. Test the brakes by applying gentle pressure to the brake pedal. The car should come to a stop smoothly without pulling to one side.
NOTE: It's always a good idea to consult a repair manual or a professional if you're not confident in performing this repair yourself.