What kind of switch?
If your talking a Perko or simular then follow the wiring diagram that comes with the perko switch.
Otherwise we need to know what kind of switch and what its used for.
.Oh yea....get a fuse panel too. It may keep your boat from burning down to the water line