They also provide a wire for a ground connection. 4 way trailer connectors are.

4 Wire Boat Trailer Wiring Diagram H1 Wiring Diagram
Four wire trailer plug diagram. Four pin trailer wiring install wiring diagram info in electric by magnus sellén 9 august 2019 leave a comment many people often have difficulties with the wiring of their trailer and even after several attempts they still dont seem to get it right. Attach the ground wire to the trailer. Strip the wire end back about a 12 inch and insert it into a terminal with a heat shrink tube. 34 inch by 1 inch 6 way rectangle connectors right turn signal green left turn signal yellow taillight brown ground white. Cut the white wire short enough for attachment to the front of the trailer near the connector plug. 6 way system rectangle plug.
As the name implies they use four wires to carry out the vital lighting functions. Also it must connect with things if included that use the aux power and back up lights too. 4 way trailer connectors are typically used on small trailers such as boat snowmobile utility and other trailers that that do not use brakes. The trailer wiring diagram shows this wire going to all the lights and brakes. Use on a small motorcycle trailer snowmobile trailer or utility trailer. Some trailer builders just connect this wire to the frame then connect the ground from all the other lights and accessories to the frame as well.
The four wires control the turn signals brake lights and taillights or running lights. One to two feet is good. The white wire must be attached to the trailer in order to ground and power the lights. The red and blue wire can be used for brake control or auxiliary.