Electrical – Is a junction box required in the situation

electricaljunction-boxlighting

I’m moving my vanity light fixture (from where it was on the left to the hole on the right), and the cable is just barely too short to reach the new location (in particular the ground wire).

I’m thinking the solution is to install a junction box between the two holes to connect a new cable (luckily the fixture will hide it).

I just wanted to double check that this is the best course of action.

enter image description here

Best Answer

Yes, you must use a junction box to make a splice and also remember that you cannot "bury" that box. Its cover must be accessible.