Wiring the vehicle for towing is fairly easy. There are a number of good wiring kits available and these should be used, rather than trying to design your own.
All trailers will need brake lights and turn signals as well as tail lights and side marker lights. Most areas require extra marker lights for overwide trailers. Also, most areas have recently required back-up lights for trailers, and most trailer manufacturers have been building trailers with back-up lights for several years.
Additionally, some Class I, most Class II and just about all Class III trailers will have electric brakes. Add to this number an accessories wire, to operate trailer internal equipment or to charge the trailer's battery, and you can have as many as seven wires in the harness.
Determine the equipment on your trailer and buy the wiring kit necessary. The kit will contain all the wires needed, plus a plug adapter set which includes the female plug, mounted on the bumper or hitch, and the male plug, wired into, or plugged into the trailer harness.
When installing the kit, follow the manufacturer's instructions. The color coding of the wires is usually standard throughout the industry. One point to note: some domestic vehicles, and most imported vehicles, have separate turn signals. On most domestic vehicles, the brake lights and rear turn signals operate with the same bulb. For those vehicles with separate turn signals, you can purchase an isolation unit so that the brake lights won't blink whenever the turn signals are operated, or, you can go to your local electronics supply house and buy four diodes to wire in series with the brake and turn signal bulbs. Diodes will isolate the brake and turn signals. The choice is yours. The isolation units are simple and quick to install, but far more expensive than the diodes. The diodes, however, require more work to install properly, since they require the cutting of each bulb's wire and soldering in place of the diode.
One, final point, the best kits are those with a spring loaded cover on the vehicle mounted socket. This cover prevents dirt and moisture from corroding the terminals. Never let the vehicle socket hang loosely; always mount it securely to the bumper or hitch.