Usually coated using silicone, epoxy resin, PVC, polyurethane, or polyolefin, waterproof lighting comes with carefully sealed gaskets and connections to ensure water doesn't seep in through the holes.
Building an underwater remotely operated vehicle (ROV) is always a challenge, and making it waterproof is often ... thin-walled containers filled with epoxy resin. Passages for wiring are also ...