As noted in Protocol Data Unit, the data link layer contains the Ethernet header and trailer. The trailer contains the Frame Check Sequence (FCS) for error checking.

Figure 5.3 Data flows down from upper layers to lower layers.
Recall that the physical layer translates the frame into a series of bits, $1$'s and $0$'s,

Figure 5.10 Physical layer.
Thus, when bits are transmitted over the computer network, they are subject to get corrupted due to interference and network problems. These are called errors. In particular, there are two type:
Single-bit Error: Only one bit is changed, either from $1$ to $0$ or vice-versa.

Burst Error: Two or more bits are changed, either from $1$ to $0$ or vice-versa.

And so, the FCS is responsible for catching these error.
You can think of the FCS as a special function that generates a unique code.

Figure 7.1 Error detection.
Now, let’s cover what these functions are.