Federal agents seized $29.6 million worth of illegal drugs from a tunnel used by smugglers to enter San Diego from Mexico, a cross-border passageway so sophisticated that it had ventilation, lighting and an underground rail system, the authorities said on Tuesday.

The tunnel’s entrance was not far from a newly constructed section of the border wall that President Trump visited last September in the Otay Mesa section of San Diego.

The stockpile of drugs included 1,300 pounds of cocaine, 86 pounds of methamphetamine, 17 pounds of heroin, 3,000 pounds of marijuana and more than two pounds of fentanyl, the San Diego Tunnel Task Force said.

The task force is made up of agents from Immigration and Customs Enforcement, the Drug Enforcement Administration and Border Patrol, which said the 2,000-foot-long tunnel was discovered on March 19.