Galvanic isolation
Galvanic isolation means separating two electrical structure from each other. One way to do it is to use a relay, another way to do it is to use an opto-isolator. Also transformer makes galvanic isolation.