IPSec provides a secure path. For example, if two hosts wish to communicate securely, but they do not have any confidence in the network, IPSec can protect communication between them.