The operating system kernel runs in a privileged mode (kernel mode) to protect its resources, while user applications run in a less privileged mode (user mode).
A user program cannot directly access hardware or perform privileged operations. To do so, it must request the service from the OS.
This request is made through a system call. A system call is the programmatic way in which a computer program requests a service from the kernel of the operating system it is executed on.
When a system call is made, it causes a switch from user mode to kernel mode, allowing the OS to perform the requested task (e.g., read a file, create a new process, send data over the network). Once the task is complete, control is returned to the user program.
Therefore, system calls provide the interface between user processes and the operating system services.