Impedance is the total opposition to the flow of alternating current in a circuit, combining both resistance and reactance.