A modular lighting system with a magnetic plug and socket connection between a battery module, light module, and other modules is provided. The plug and socket include magnets which are attached magnetically to each other to hold the battery module and light module together. Electricity is transmitted through the magnets to power the light module. The connection system allows a user to easily customize the lighting system to meet different needs.