A junction box is an enclosure that protects a connection (the junction) of two or more wires carrying electrical current. ... When a
junction box is used for every electrical connection in a building it is much easier to locate and repair any electrical problems that come up.