By limiting which devices can connect to the network and how they can connect, port security restricts access to a network. It can only be accessed by particular hardware or MAC addresses. It is a method of managing which devices have network access.