Mont. Code Ann. § 27-16-401
Discharge of defendant upon giving bail before execution
27-16-401 . Discharge of defendant upon giving bail before execution. The defendant, at any time before execution, is discharged from arrest either upon giving bail or upon depositing the amount mentioned in the order, as provided in this chapter.