Abstract: The invention relates to a junction box (10) with a base part (20) and a cover part (30) arranged pivotably on the base part (20), wherein a spring element (40) is arranged between the base part (20) and the cover part (30), which is preloaded in such a way that it transfers the cover part (30) from an open position to a closed position, wherein a locking element (50) is arranged on the junction box (10), which element is movable between a first position and a second position, and which in the first position locks the cover part (20) against the spring force of the spring element (40) in the open position and allows the cover part (20) to be transferred from the open position to the closed position in the second position.