When you connect to a VPN server, it encrypts all of the internet traffic going to and from your connected device. This ensures that your ISP and any other nosy party cannot track your online activities. They cannot see the websites you visit, they don't know what you do on a website, or how long you spend visiting the website.