A firewall is a device or a programme the function of which is to stop inappropriate communications between networks.
To a regular user, the firewall in the computer itself is usually sufficient. At least with the Windows operating system, a firewall is attached, so the users of Windows automatically have a firewall at their disposal.
More information about the firewall at https://en.wikipedia.org/wiki/Firewall_(computing)