Lights turned off while driving

Hey i was coming back from wasaga around 4ish goin down airport rd around 150-160km the whole way to mississauga and my lights flicked off for split second after i clutched, this happened about 3 times. Then 20 minutes later all the lights in and on the car turned off fur 3-4 seconds then turned back on. The motor was still running and everything… check my alternator?

ground wire’s in the engine bay…had the same problem on my s13, turned out it was the ground strap from the ehad to the firewall.