MIAMI — The imam of a small mosque in a working-class neighborhood here was found guilty in federal court on Monday of providing thousands of dollars of support to the Pakistani Taliban.

Capping a two-month trial, the imam, Hafiz Khan, 77, an American citizen who came to the United States in 1994, was found guilty by a jury of two counts of conspiracy and two counts of providing material support to terrorists. Each count faces a maximum 15-year prison sentence.

Over the course of four days, the frail cleric delivered long speeches to the jury in Pashto, his native language, coming to his own defense. Mr. Khan said that he was “totally against” the Taliban and that he had sent the money to Pakistan to provide for his family and the Muslim school he had founded in the Swat Valley in Pakistan.

But federal prosecutors said Mr. Khan and, to a lesser extent, other relatives, not only embraced the Taliban’s mission but also helped finance it. Mr. Khan, they said, sent an estimated $50,000 to the Pakistani Taliban, which is allied with Al Qaeda and is responsible for attacks against the Pakistani police and military targets.