The existence of malware on your computer is the cause of some websites opening up automatically in your browser. Unless you remove the malware by running a malware scan, it will continue to control your browser.