The latency of a network connection represents the amount of time it takes for data to travel between the sender and the receiver. While all computer networks inherently have some latency, the amount varies and can suddenly increase for a variety of reasons. People refer to these unexpected time delays as "lag."
Internet Delay – Troubleshooting Packet Loss Issues
High latency can also cause high lags. For example, your video game may experience high latency, which sometimes causes the game to crash and not provide live updates from other players. Less lags means that the connection experiences lower latency.
Network lag occurs for a few reasons, namely distance and congestion. In some cases, you can fix internet lag by changing the way your device communicates with the network.
Latency and bandwidth are closely related, but are two separate terms. To understand what causes high latency, it is important to distinguish it from high bandwidth.