A hard fork occurs when a blockchain permanently splits into two separate chains because of a significant change in the protocol or rules. The original blockchain does not accept the new version, and they operate independently from each other, each with its own set of rules and transaction history.