The ride-sharing services Lyft and Uber announced Monday that they would introduce temporary, late-night discounts in the Boston area as the MBTA discontinues its late-night weekend service.
Both of the companies are offering the deals through their programs that allow riders to share the costs of trips along similar routes.
Lyft is offering a 75 percent discount on “Lyft Line’’ rides between 12:30 a.m. and 4 a.m. on the weekend of March 19. That rate is available in most areas of Boston, Cambridge, Somerville, Brookline, and other inner suburbs, the company said.
Lyft will continue to offer discounts of between 45 and 55 percent in the same area every day between 12:30 and 4 a.m. through mid-April.
Uber will allow riders to pay $5 for rides that run along subway lines and are summoned through its UberPOOL service from 12:30 a.m. to 2 a.m.
Uber’s offer will run for four weekends starting March 19.
Both companies said people who use their carpooling programs will get the lowered rates whether they find somebody to share the ride or not.
“We know the end of late-night MBTA service will affect many people and we wanted to help ease that transition once that service ends and help people get where they need to go safely and affordably late on weekend nights,’’ Chris Taylor, Uber’s general manager for Boston, said in a statement.
Advocates for keeping the late-night T service had argued that it was a crucial transportation link for people who work late into the night.
At a meeting Monday on proposals to raise MBTA fares, one speaker protested that ride-sharing services would not replace the need for low-cost public transportation.
“Those of us without a salary cannot afford to take Ubers all the time,’’ Samantha Wolf said.
Nicole Dungca of the Globe staff contributed to this article. Andy Rosen can be reached at andrew.rosen@globe.com. Follow him on Twitter at @andyrosen.