How did Francesco Redi disprove the idea of spontaneous generation?

He showed that flies were not produced by meat.
He showed that microorganisms are present in air.
He showed that microorganisms cause disease.
He showed that flies spread disease.

Francesco Redi conducted an experiment where he placed raw meat in jars, some covered and some uncovered. The jars with uncovered meat attracted flies, which laid eggs on the meat. The eggs eventually hatched into maggots, seemingly supporting the idea of spontaneous generation. However, the jars with covered meat did not attract flies and maggots did not appear. This experiment demonstrated that flies were not spontaneously generated from the meat, but rather were attracted to it to lay eggs, which then hatched into maggots. This experiment provided evidence against the idea of spontaneous generation.