A junction box is used in building construction and consists of a square box or housing that provides protection and a safety barrier for electrical connections. These boxes are made from metal or plastic and form part of your home or other building’s electrical wiring system.