That's why it's essential to understand the two main types of junction boxes: plastic and metal. Plastic boxes are lightweight and easy to install, perfect for most residential homes. But this. An electrical junction box is an enclosed housing designed to protect the splices and terminations of electrical wires, preventing accidental contact and mitigating the risk of electrical fires. Both options offer distinct characteristics that cater to various applications and environments.