There are several ways to connect wiring, however, one of the simplest and safest ways is to use a wire nut. By simply twisting on a wire nut, you can join two wires together while protecting the ends of the wires from coming in contact with other wires or metal objects. Wire nuts are also colour coded to help the installer to know which wires carry electricity. Wire nuts also come in various sizes based on the gauge of wire you want to connect.
Turn off power to the wiring or unplug devices that use the wiring.
Strip about 1 inch of insulation from each end of the wires.
Place the two stripped ends of the wires together so they are side by side in your hand. Using your fingers, twist the two wires together clockwise.
Insert the end of the twisted wire into the wire nut. Hold the wiring firmly in one hand while using the other hand to twist the wire nut down onto the wiring in a clockwise direction.
Plug the wiring or devices that the wiring is attached to back into a power source, then test for operation.
When working with electrical wires, use red wire nuts to indicate electrical wires that are considered "hot" or carrying electricity, white wire nuts on neutral wires, and green wire nuts on ground wires. This indicates which wires may be dangerous to touch. Secure wire nuts by wrapping with black electrical tape.
Never attempt to work on any wires that have electricity running through them.