Why does electrolysis turn water murky?
The question needs to be more specific. What method of electrolysis are you performing. Are you using aluminum foil and salty water? If you are, the NaCL (salt) will be electrolysed to form NaOH (lye) and also giving off chlorine gas. (which can be dangerous in sufficient quantity) The sodium hydroxide (lye) will in turn attack your aluminum foil creating aluminum oxide. This aluminum oxide it what is causing your water to be murky. Carbon electrodes are a better option.