The city announced Tuesday it will finally move forward with a stalled plan to build a protected bike lane along Brooklyn’s Fourth Avenue — after two cyclists were fatally hit by vehicles nearby this year.

The city had been planning a pedaling path stretching four miles from Atlantic Avenue in Boreum Hill to 65th Street in Sunset Park — but the bulk of the project had been delayed indefinitely due to underground subway work along the corridor.

With the MTA work wrapped up, the Department of Transportation said it now hopes to install the stretch from 15th to 60th streets by the end of the year — using funding from Mayor Bill de Blasio’s $58.4 million “Green Wave” plan, announced last month amid a spate of rider deaths.

The Department of Transportation’s announcement came as local bike advocates planned to rally Wednesday to call attention to the city’s lax timeline for installing the lane, which they argued didn’t reflect the urgency of the situation.

Last week, 30-year-old artist Em Samolewicz was riding north on Third Avenue near 35th Street when a parked motorist opened the door of his van, forcing her to swerve into the road — where she was fatally hit by a tractor-trailer.

And in January, 26-year-old Hugo Garcia was killed in a similar incident on Third Avenue near 28th Street.