Late night service is returning to the MBTA.

Gov. Deval Patrick announced Monday that the MBTA will run all subway trains and the 15 most popular bus routes until 3 a.m. on Saturday and Sunday. The one-year pilot program will begin in March or April. If it is successful, it will be extended.

Patrick told The Boston Globe the service will be financed with $20 million in state money as well as corporate sponsorships.

Support for GBH is provided by:

The T currently ends service at 1 a.m., much to the chagrin of people who point out that bars and restaurants close at 2 a.m.

Workers in the state’s tech industry also say they tend to work unconventional hours.

A previous effort to provide late night bus service failed due to low ridership.