Your amp is drawing a lot of it, and the charging system in your car cant keep up.
Feeding a Hungry Amplifier
Your powerful newampis hungry, and what it craves is electrical current.
The bad news is that your alternator isnt an infinite smorgasbord of juice.

Mark Horn / Photographer’s Choice / Getty
In effect, your headlights dim and flicker because your amp is starving them.
That leaves you with two basic solutions: fix your sound system, or alter your charging system.
Downgrade the Amp
The other sound-system-related solution is to downgrade your amp.
What if You Aren’t Sure It’s Music Related?
Check the Headlight Relay
The headlight relay may be located on your fuse panel or elsewhere.
If the flickering goes away, and you develop a different problem elsewhere, replace the relay.
Tighten or replace the belt, and it may work better.
Consider downgrading your amp, upgrading your alternator, or installing a stiffening cap.