Full service on the F and M subway lines will resume after months of track replacement work, the MTA said.

The lines are expected to resume regular stops in Manhattan and Queens beginning at 5 a.m. on April 1, a news release said.

Replacement work occurred between 47th-50th Streets-Rockefeller Center in Manhattan and 36th St.  in Queens, the release said.

Subway service for the lines were originally disrupted in August to address infrastructure leaks to prevent future deterioration, officials said.

The shuttle that has been running between Lexington Avenue-63rd Street and 21st Street-Queensbridge will be suspended at 5 a.m. on March 30 for the final stage of the replacement project.

At 5 a.m. on March 29, the MTA will provide a free shuttle bus to connect Roosevelt Island, 21st Street-Queensbridge and Queens Plaza, which will follow the current Q94 overnight shuttle route, the release said.

The F line will also continue operating via the E line in both directions, according to the release.

On March 29 from 5:30 a.m. to 10 p.m, the M line will operate between Metropolitan Ave and Delancey St - Essex St, and via the J line to and from Chambers Street, which will be the last stop, according to the release.

The M line will resume full overnight and weekend service at 10 p.m. on March 29, the release said.