When driving at night and approaching a car from behind, lower your high beam headlights when you are within:

When driving at night, change your high beam headlights to their low beam setting when within 200 feet of another vehicle ahead of you.
DMV Writen Test