A Central Texas judge allegedly sold guns to convicted criminals and helped smuggle guns to Mexico, according to a federal grand jury indictment unsealed Tuesday.

A grand jury in Austin indicted Tim Wright, a 70-year-old Williamson County court-at-law judge, on nine federal charges, including several federal firearms charges and lying to federal agents while they investigated his alleged activity.

Agents with the federal Bureau of Alcohol, Tobacco, Firearms and Explosives found 51 guns when they raided Wright's home on March 27, according to the indictment and news station KVUE.

Wright faces nine charges, according to the indictment:

Three counts of selling firearms to a prohibited person

One count of aiding and abetting and facilitating the smuggling and attempted smuggling of firearms

One count of facilitating the smuggling and attempted smuggling of firearms

Two counts of making a false statement during purchase of a firearm

Two counts of making a false statement to government agents

The indictment alleges that Wright, who went by the moniker "The Judge," sold firearms on three separate occasions in February to someone known as "J.C."

Wright had "reasonable cause to believe" that J.C. had been previously convicted of a crime, according to the indictment.

RELATED: Man born in Texas held on federal terrorism charge

Wright also allegedly helped smuggle and attempted to smuggle firearms to Mexico during two time periods: from June 2014 to October 2014 and from December 2014 to March 27.

The indictment also accuses Wright of lying to two gun shops when purchasing a total of eight firearms in July 2014 and December 2014, saying that the guns were for him when he was in fact purchasing them for someone else.

Wright is also accused of lying to federal agents on March 27 by saying that he had not sold firearms between September 2014 and January 2015.

Wright faces up to 10 years in federal prison on each firearm charge and up to five years for each count of lying to a federal agent.

The 70-year-old has been in his position since Jan. 2, 2003.

jfechter@mySA.com

Twitter: @JFreports