This article explains how to install Minecraft Forge. Instructions apply to Minecraft: Java Edition.
How to Install Forge for Minecraft
The process of downloading and installing Minecraft Forge is very simple. You will first need to download the installer from the official Forge website, run the installer with the appropriate options selected, and then launch Minecraft. Once you have done that, you can install and run any Forge-compatible mod that you want.
To install Minecraft Forge, follow these steps in the order listed:
Go to the official Forge website.