The Code of Criminal Procedure, 1898
Part IV: PREVENTION OF OFFENCES
Chapter VIII
OF SECURITY FOR KEEPING THE PEACE AND FOR GOOD BEHAVIOUR
Section 106: Security for keeping the peach on conviction
106.(1) Whenever any person accused of any offence punishable under Chapter VIII of the Penal Code, other than an offence punishable under section 143, section 149, section 153A or section 154 thereof, or of assault or other offence involving a breach of the peace, or of abetting the same, or any person accused of committing criminal intimidation, is convicted of such offence before High Court Division, a Court of Session, or the Court of a Metropolitan Magistrate,  or a Magistrate of the first class, and such Court is of opinion that it is necessary to require such person to execute a bond for keeping the peace, such Court may, at the time of passing sentence on such person, order him to execute a bond for a sum proportionate to his means, with or `without sureties, for keeping the peace during such period, not exceeding three years, as it thinks fit to fix.
(2) If the conviction is set aside on appeal or otherwise, the bond so executed shall become void.
(3) An order under this section may also be made by an Appellate Court  or by the High Court Division when exercising its powers of revision.
Section 107: Security for keeping the peace in other cases
107.(1) Whenever a District Magistrate or any other Executive Magistrate is informed that any person is likely to commit a breach of the peace or disturb the public tranquillity or to do any wrongful act that may probably occasion a breach of the peace, or disturb the public tranquillity, the Magistrate if in his opinion there is sufficient ground for proceeding may, in manner hereinafter provided, require such person to show cause why he should not be ordered to execute a bond, with or without sureties, for keeping the peace for such period not exceeding one year as the Magistrate thinks fit to fix.
(2) Proceedings shall not be taken under this section unless either the person informed against or the place where the breach of the peace or disturbance is apprehended, is within the local limits of such Magistrate's jurisdiction, and no proceedings shall be taken before any Magistrate, other than the District Magistrate, unless both the person informed against and the place where the breach of the peace or disturbance is apprehended, are within the local limits of the Magistrate's jurisdiction.
(3) When any Magistrate not empowered to proceed under sub-section (1) has reason to believe that any person is likely to commit a breach of the peace or disturb the public tranquillity or to do any wrongful act that may probably occasion a breachof the peace or disturb the public tranquillity and that such breach of the peace or disturbance cannot be prevented otherwise than by detaining such person in custody, such Magistrate may, after recording his reasons, issue a warrant for his arrest (if he is not already in custody or before the Court), and may send him before a Magistrate empowered to deal with the case, together with a copy of his reasons.
(4) A Magistrate before whom a person is sent under sub-section (3) may in his discretion detain such person in custody pending further action by himself under this Chapter.
Section 108: Security for good behaviour from persons disseminating seditious matter
108. Whenever the District Magistrate, or any other Executive Magistrate" specially empowered by the Government in this behalf, has information that there is within the limits of his jurisdiction any person who, within or without such limits, either orally or in writing or in any other manner intentionally disseminates or attempts to disseminate, or in anywise abets the dissemination of,-
(a) any seditious matter, that is to say, any matter the publication of which is punishable under section 123A or section 124A of the Penal Code, or
(b) any matter the publication of which is punishable under section 153A of the Penal Code, or
(c) any matter concerning a Judge which amounts to criminal intimidation or defamation under the Penal Code,
such Magistrate, if in his opinion there is sufficient ground for proceeding may (in manner hereinafter provided) require such person to show cause why he should not be ordered to execute a bond, with or without sureties, for his good behaviour for such period, not exceeding one year, as the Magistrate thinks fit to fix.
No proceedings shall be taken under this section against the editor, proprietor, printer of publisher of any publication registered under, and edited, printed and published in conformity with, the provisions of the Printing Presses and Publications (Declaration and Registration) Act, 1973, with reference to any matters contained in such publication except by the order or under the authority of the Government or some officer empowered by the Government in this behalf.
Section 109: Security for good behaviour from vagrants and suspected persons
109. Whenever District Magistrate or an Executive Magistrate receive information-
(a) that any person is taking precautions to conceal his presence within the local limits of such Magistrate's jurisdiction, and that there is reason to believe that such person is taking such precautions with a view to committing any offence, or
(b) that there is within such limits a person who has no ostensible means of subsistence, or who cannot give a satisfactory account of himself,
such Magistrate may, in manner hereinafter provided, require such person to show cause why he should not be ordered to execute a bond, with sureties, for his good behaviour for such period, not exceeding one year, as the Magistrate thinks fit to fix.
Section 110: Security for good behaviour from habitual offenders
110. Whenever a District Magistrate, or anyother Executive Magistrate specially empowered in this behalf by the Government receives information that any person within the local limits of his jurisdiction-
(a) is by habit a robber, house-breaker, thief, or forger, or
(b) is by habit a receiver of stolen property knowing the same to have been stolen, or
(c) habitually protects or harbours thieves or aids, in the concealment or disposal of stolen property, or
(d) habitually commits, or attempts to commit, or abets the commission of, the offence of kidnapping, abduction, extortion, cheating or mischief, or any offence punishable under Chapter XII of the Penal Code, or under section 489A, section 489B, section 489C or section 489D of that Code, or
(e) habitually commits, or attempts to commit, or abets the commission of, offences involving a breach of the peace, or
(f) is so desperate and dangerous as to render his being at large without security hazardous to the community,
such Magistrate may, in manner hereinafter provided, require such person to show cause why he should not be ordered to execute a bond, with sureties, for his good behaviour for such period, not exceeding three years, as the Magistrate thinks fit to fix.
Section 112: Order to be made
112. When a Magistrate acting under section 107, section 108, section 109 or section 110 deems it necessary to require any person to show cause under such section, he shall make an order in writing, setting forth the substance of the information received, the amount of the bond to be executed, the term for which it is to be in force, and the number, character and class of sureties (if any) required.
Section 113: Procedure in respect of person present in Court
113. If the person in respect of whom such order is made is present in Court, it shall be read over to him or, if he so desires, the substance thereof shall be explained to him.
Section 114: Summons or warrant in case of person not so present
114. If such person is not present in Court, the Magistrate shall issue a summons requiring him to appear, or, when such person is in custody, a warrant directing the officer in whose custody he is, to bring him before the Court:
Provided that whenever it appears to such Magistrate, upon the report of a police-officer or upon other information (the substance of which report or information shall be recorded by the Magistrate), that there is reason to fear the commission of a breach of the peace, and that such breach of the peace cannot be prevented otherwise than by the immediate arrest of such person, the Magistrate may at any time issue a warrant for his arrest.
Section 115: Copy of order under section 112 to accompany summons or warrant
115. Every summons or warrant issued under section 114 shall be accompanied by a copy of the order made under section 112, and such copy shall be delivered by the officer serving or executing such summons or warrant to the person served with, or arrested under, the same.
Section 116: Power to dispense with personal attendance
116. The Magistrate may, if he sees sufficient cause, dispense with the personal attendance of any person called upon to show cause why he should not be ordered to execute a bond for keeping the peace, and may permit him to appear by a pleader.
Section 117: Inquiry as to truth of information
117.(1) When an order under section 112 has been read or explained under section 113 to a person present in Court, or when any person appears or is brought before a Magistrate in compliance with, or in execution of, a summons or warrant, issued under section 114, the Magistrate shall proceed to inquire into the truth of the information upon which action has been taken, and to take such further evidence as may appear necessary.
(2) Such inquiry shall be made, as nearly as may be practicable where the order requires security for keeping the peace, in the manner hereinafter prescribed for conducting trials and recording evidence in summons-cases; and where the order requires security for good behaviour in the manner hereinafter prescribed for conducting trials and recording evidence in warrant-cases, except that no charge need be framed.
(3) Pending the completion of the inquiry under sub-section (1) the Magistrate, if he considers that immediate measures are necessary for the prevention of a breach of the peace or disturbance of the public tranquillity or the commission of any offence or for the public safety, may, for reasons to be recorded in writing, direct the person in respect of whom the order under section 112 has been made to execute a bond, with or without sureties, for keeping the peace or maintaining good behaviour until the conclusion of the inquiry, and may detain him in custody until such bond is executed or, in default of execution, until the inquiry is concluded:
Provided that:-
(a) no person against whom proceedings are not being taken under section 108, section 109, or section 110, shall be directed to execute a bond for maintaining good behaviour, and
(b) the conditions of such bond, whether as to the amount thereof or as to the provision of sureties of the number thereof or the pecuniary extent of their liability, shall not be more onerous than those specified in the order under section 112.
(4) for the purposes of this section the fact that a person is an habitual offender or is so desperate and dangerous as to render his being at large without security hazardous to the community may be proved be evidence of general repute or otherwise.
(5) Where two or more persons have been associated together in the matter under inquiry, they may be dealt with in the same or separate inquiries as the Magistrate shall think just.
Section 118: Order to give security
118. If, upon such inquiry, it is proved that it is necessary for keeping the peace or maintaining good behaviour, as the case may be, that the person in respect of whom the inquiry is made should execute a bond, with or without sureties the Magistrate shall make an order accordingly:
Provided-
firstly , that no person shall be ordered to give security of a nature different from, or of an amount larger than, or for a period longer than, that specified in the order made under section 112:
secondly, that the amount of every bond shall be fixed with due regard to the circumstances of the case and shall not be excessive:
thirdly, that when the person in respect of whom the inquiry is made is a minor, the bond shall be executed only by his sureties.
Section 119: Discharge of person informed against
119. If, on an inquiry under section 117, it is not proved that it is necessary for keeping the peace or maintaining good behaviour, as the case may be, that the person in respect of whom the inquiry is made, should execute a bond, the Magistrate shall make an entry on the record to that effect, and if such person is in custody only for the purposes of the inquiry, shall release him, or, if such person is not in custody, shall discharge him.
Section 120: Commencement of period for which security is required
120.(1) If any person, in respect of whom an order requiring security is made under section 106 or section 118, is, at the time such order is made, sentenced to, or undergoing a sentence of, imprisonment the period for which such security is required shall commence on the expiration of such sentence.
(2) In other cases such period shall commence on the date of such order unless the Magistrate, for sufficient reason, fixes a later date.
Section 121: Contents of bond
121. The bond to be executed by any such person shall bind him to keep the peace or to be of good behaviour, as the case may be, and in the latter case the commission or attempt to commit, or the abetment of, any offence punishable with imprisonment, wherever it may be committed, is a breach of the bond.
Section 122: Power to reject sureties
122.(1) A Magistrate may refuse to accept any surety offered, or may reject any surety previously accepted by him or his predecessor under this Chapter on the ground that such surety is an unfit person for the purposes of the bond:
Provided that, before so refusing to accept or rejecting any such surety, he shall either himself hold an inquiry on oath into the fitness of the surety, or cause such inquiry to be held and a report to be made thereon by a Magistrate subordinate to him.
(2) Such Magistrate shall, before holding inquiry, give reasonable notice to the surety and to the person by whom the surety was offered and shall in making the inquiry record the substance of the evidence adduced before him.
(3) If the Magistrate is satisfied, after considering the evidence so adduced either before him or before a Magistrate deputed under sub-section (1), and the report of such Magistrate (if any) that the surety is an unfit person for the purposes of the bond, he shall make an order refusing to accept or rejecting, as the case may be, such surety and recording his reasons for so doing:
Provided that, before making an order rejecting any surety who has previously been accepted, the Magistrate shall issue his summons or warrant, as he thinks fit, and cause the person for whom the surety is bound to appear or to be brought before him.
Section 123: Imprisonment in default of security
123.(1) If any person ordered to give security under section 106 or section 118 does not give such security on or before the date on which the period for which such security is to be given commences, he shall, except in the case next hereinafter mentioned, be committed to prison, or, if he is already in prison be detained in prison until such period expires or until within such period he gives the security to the Court or Magistrate who made the order requiring it.
(5) Imprisonment for failure to give security for keeping the peace shall be simple.
(6) Imprisonment for failure to give security for good behaviour shall, where the proceedings have been taken under section 108 be simple and, where the proceedings have been taken under section 109 or section 110, be rigorous or simple as the Court or Magistrate in each case directs.

(2) When such person has been ordered by a Magistrate to give security for a period exceeding one year, such Magistrate shall, if such person does not give such security as aforesaid, issue a warrant directing him to be detained in prison pending the orders of the Sessions Judge; and the proceedings shall be laid, as soon as conveniently may be, before such Judge.
(3) The Sessions Judge, after examining such proceedings and requiring from the Magistrate any further information or evidence which he thinks necessary, may pass such order on the case as he thinks fit:
Provided that the period (if any) for which any person is imprisoned for failure to give security shall not exceed three years.
(3A) If security has been required in the course of the same proceedings from two or more persons in respect of any one of whom the proceedings are referred to the Sessions Judge under sub-section (2), such reference shall also include the case of any other of such persons who has been ordered to give security, and the provisions of sub-sections (2) and (3) shall, in that event, apply to the case of such other person also, except that the period (if any) for which he may be imprisoned shall not exceed the period for which he was ordered to give security.
(3B) A Sessions Judge may in his discretion transfer any proceedings laid before him under sub-section (2) or sub-section (3A) to an Additional Sessions Judge or Joint Sessions Judge and upon such transfer, such Additional Sessions Judge or Joint Sessions Judge may exercise the powers of a Sessions Judge under this section in respect of such proceedings
(4) If the security is tendered to the officer in charge of the jail, he shall forthwith refer the matter to the Court or Magistrate who made the order, and shall await the orders of such Court or Magistrate.
Section 124: Power to release persons imprisoned for failing to give security
124.(1) Whenever the District Magistrate  is of opinion that any person imprisoned for failing to give security under this Chapter may be released without hazard to the community or to any other person, he may order such person to be discharged.
(2) Whenever any person has been imprisoned for failing to give security under this Chapter, the  District Magistrate may (unless the order has been made by some Court superior to his own) make an order reducing the amount of the security or the number of sureties or the time for which security has been required.
(3) An order under sub-section (1) may direct the discharge of such person either without conditions or upon any conditions which such person accepts:
Provided that any condition imposed shall cease to be operative when the period for which such person was ordered to give security has expired.
(4) The Government may prescribe the conditions upon which a conditional discharge may be made.
(5) If any condition upon which any such person has been discharged is, in the opinion of the District Magistrate , by whom the order of discharge was made or of his successor, not fulfilled, he may cancel the same.
(6) When a conditional order of discharge has been cancelled under sub-section (5), such person may be arrested by any police-officer without warrant, and shall thereupon be produced before the District Magistrate .
Unless such person then gives security in accordance with the terms of the original order for the unexpired portion of the term for which he was in the first instance committed or ordered to be detained (such portion being deemed to be a period equal to the period between the date of the breach of the conditions of discharge and the date on which, except for such conditional discharge, he would have been entitled to release), the District Magistrate , may remand such person to prison to undergo such unexpired portion.
A person remanded to prison under this sub-section shall, subject to the provisions of section 122, be released at any time on giving security in accordance with the terms of the original order for the unexpired portion aforesaid to the Court or Magistrate by whom such order was made, or to its or his successor.
Section 125: Power of District Magistrate to cancel any bond for keeping the peach or good behaviour
125. The  District Magistrate may at any time, for sufficient reasons to be recorded in writing, cancel any bond for keeping the peace or for good behaviour executed under this Chapter by order of any Court in his district not superior to his Court.
Section 126: Discharge of sureties
126.(1) Any surety for the peaceable conduct or good behaviour of another person may at any time apply to a District Magistrate or any other Executive Magistrate to cancel any bond executed under this Chapter within the local limits of his jurisdiction.
(2) On such application being made, the Magistrate shall issue his summons or warrant, as he thinks fit, requiring the person for whom such surety is bound to appear or to be brought before him.
Section 126A: Security for unexpired period of bond
126A. When a person for whose appearance a warrant or summons has been issued under the proviso to sub-section (3) of section 122 or under section 126, sub-section (2), appears or is brought before him, the Magistrate shall cancel the bond executed by such person and shall order such person to give, for the unexpired portion of the term of such bond, fresh security of the same description as the original security. Every such order shall, for the purposes of sections 121, 122, 123 and 124, be deemed to be an order made under section 106 or section 118, as the case may be.