It is essential to determine the most suitable machining method for magnesite-reinforced Aluminium 6061 composites, which possess excellent mechanical properties, especially notable tensile strength and hardness. The composites were produced using a stir-casting technique, incorporating reinforcements of lightly-calcined magnesite, dead burnt magnesite, and waste magnesite in weight fractions of 2.5%, 5%, and 7.5% within an aluminium 6061 matrix. Wire electrical discharge machining was employed to investigate the machining characteristics of these composites, using controllable process parameters such as cutting speed, pulse-on and pulse-off times, and the weight fraction of magnesites. Two performance indicators such as surface roughness and material removal rate were tested for various parameter combinations by central composite design. To comprehend the impact of the study parameters, contour charts were drawn. MRR increases at a high cutting speed of 2 mm/min when the pulse-on time changes from 120 μs to 125 μs. SR increases when the pulse-on times above 120 μs at all cutting speeds. High cutting speeds make high MRR irrespective of the weight fractions of reinforcement. High pulse-on times make the material melt more, which increases the material removal rate. Because specimen surface material erodes quickly and forms microcracks, high pulse-on time also results in high surface roughness. To optimize the WEDM machining conditions for each composite, hybrid SSO-DF and DFO-DF optimizers were developed by combining the desirability function with Salp-swarm optimization and Dragonfly optimization algorithms. The cutting speed of 2 mm/min and the pulse-on time of 114 μs produce the best performances on the composites.