A dense-fog advisory is in effect in parts of Northern Virginia and Maryland until 8 a.m., with heavy fog creating dangerous driving conditions across the region Monday morning.

The advisory is in effect in Fairfax, Loudoun, Fauquier, Prince William, Frederick, Spotsylvania and Stafford counties in Virginia, as well as Fredericksburg, Manassas and Manassas Park. The alert also includes Frederick and Montgomery counties in Maryland, according to the National Weather Service.

The fog is causing limited visibility, as little as one-quarter of a mile in some areas, leading to hazardous driving conditions. On Sunday, a series of chain-reaction car wrecks on I-77 in Virginia — involving 95 vehicles, killing three people and injuring 25 — was blamed on heavy fog.

Drivers are advised to slow down, use low-beam headlights and leave plenty of distance ahead of them.

The advisory will be in effect until 8 a.m., according to NWS.