The principle of a fuse is based on the thermal effect of electricity. A fuse wire melts due to the heat generated by an excessive current, thereby breaking the circuit and preventing damage. This thermal effect ensures that the fuse acts as a safety device to protect electrical circuits.