Forks are essentially split in the blockchain network. A Fork occurs when changes, whether intentional or accidental, take place in the original rules of the blockchain network.
Accidental forks occur when different miners discover, for instance, two new blocks on a network at nearly the same time. Then the network will be temporarily divided into two different chains. Miners will thusly be split onto these two chains until new blocks are added to one of these chains thereby creating a longer chain. The longer chain will eventually be kept and the other will be abandoned.
What is mining? Why do miners engage in mining? Please refer to the content: What is mining?
Intentional forks refer to the case where the rules of a blockchain are modified on purpose. Older nodes, for some reason, may not choose to upgrade to the newest version. The original blockchain will diverge into two chains depending on whether the nodes on each chain choose to or not to upgrade. An intentional fork can be further categorized into Soft Fork and Hard Fork.
You might also be interested in the following information: