May I strongly suggest that you start with a simple Web search when you have such a question?
https/en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface has a better explanation than you are likely to get posted here.
The UEFI replaces BIOS as the lowest-level software that runs on the motherboard. It presents an interface that the operating system uses to control the hardware.