The man in the middle is a type of cyberattack in which the threat actor intercepts the communication exchanged between the client and the server. This can occur when you use public WiFi networks, access HTTP websites, etc… You can prevent this by using websites that make use of an SSL and by making use of a VPN.