Section 29 of the Code of Criminal Procedure, 1973, lays down the sentencing powers of Magistrates. According to Section 29(1), the Court of a Chief Judicial Magistrate (CJM) may pass any sentence authorized by law except a sentence of death, or of imprisonment for life, or of imprisonment for a term exceeding seven years. Therefore, the maximum term of imprisonment a CJM can impose is seven years.