This process is called a clean install, which is ironic as there's nothing particularly clean about it: Microsoft has enshittified Windows Setup.
If your computer doesn’t comply with the latest hardware requirement for installing Windows 11, you can follow this tutorial to install Windows 11 on unsupported ...