Major League Baseball provided $25 million to the owners of the Mets as they struggled to deal with a cash shortfall last fall and a looming lawsuit seeking hundreds of millions of dollars for victims of Bernard L. Madoff’s vast Ponzi scheme, according to two people briefed on the arrangement.

The direct intervention of Commissioner Bud Selig to help sustain the operations of the franchise  confirmed by the Mets on Friday  is perhaps the most striking evidence yet of the financial distress that for many months has plagued the team’s owners, Fred Wilpon and Saul Katz.

The trustee for victims of Mr. Madoff’s fraud has accused Mr. Wilpon and Mr. Katz of having turned a blind eye to warnings about the suspect nature of his multibillion-dollar investment operation while using the profits they reaped from their investments with him to enrich themselves and fuel their business empire. The trustee, Irving H. Picard, is seeking roughly $1 billion from the team’s owners and their various business partners.

The Mets have exhausted baseball’s standard bank line of credit, tens of millions of dollars that Mr. Selig and the sport’s owners make available to teams for a variety of reasons in the course of a year. The owners also have more than $400 million in debt on the team. Thus, the additional money provided by Mr. Selig  done in secret last November  might have been crucial in keeping the club functioning. Three weeks ago, after months spent denying that they were in any significant financial trouble, Mr. Wilpon and Mr. Katz announced that they were willing to sell 25 percent of the club, which is valued by Forbes magazine at $858 million. In recent days, the men indicated they were willing to sell even a larger share of the team, but they have insisted they do not want to give up majority ownership.