An electrical conduit is a tube used to protect and route electrical wiring in a building or nonbuilding structure. Electrical conduit may be made of metal, plastic, fiber, or fired clay. Most conduit is rigid, but flexible conduit is used for some purposes.
Conduit is generally installed by electricians at the site of installation of electrical equipment. Its use, form, and installation details are often specified by wiring regulations, such as the US National Electrical Code (NEC) and other building codes.
Some early electric lighting installations made use of existing gas pipe serving gas light fixtures which had been converted to electric lamps. Since this technique provided very good mechanical protection for interior wiring, it was extended to all types of interior wiring and by the early 20th century purpose-built couplings and fittings were manufactured for electrical use.
However, most electrical codes now prohibit the routing of electrical conductors through gas piping, due to concerns about damage to electrical insulation from the rough interiors of pipes and fittings commonly used for gas.