A junction box is disclosed for a solar panel. The junction box can have a base portion and cover portion nesting together. The base portion can have an extending skirt portion and be secured to the solar panel and have one or more contacts for making electrical contact with the solar panel. All other electrical components of the junction box can reside in the top portion for ease of accessibility in making cable or wire connections and/or maintaining the electrical components therein. The cover portion can have one or more terminals for connecting to the one or more contacts of the bottom portion when the cover and base portion are brought together. The terminals can be configured and mounted to the cover to provide connection with cables, to be electrically connected to each other with electrical components, and to dissipate heat produced by the electrical components.