Martin James (Jim) O'Neil pleaded guilty in Moncton provincial court on Thursday. (Kate Letterick/CBC)

A lawyer who lives in Moncton pleaded guilty to tax evasion charges in Moncton provincial court on Thursday.

Martin James (Jim) O'Neil was fined $27,900, to be paid by Nov. 1, 2013.

O'Neil failed to remit that amount in harmonized sales taxes, charged to his clients at his law office in Amherst, N.S., between Jan. 1, 2005 and June 30, 2007, the court heard.

The charges stemmed from an investigation by the Canada Revenue Agency.

The investigation revealed "numerous deliberate actions taken to evade the remittance of these taxes," according to a statement by the CRA.

In addition to repaying the amount of taxes evaded, courts may impose a fine of up to 200 per cent of the taxes owed, and impose a jail term of up to two years.