In short
A VLAN is a method of logically dividing a single physical network infrastructure into segments that are isolated from one another.
In factories, VLANs separate OT and IT networks and keep cameras, sensors or guest devices in their own segments.
Traffic between segments is controlled by firewall rules, making it harder for a cyber attack to spread across the network.