39. Mandatory injunctions.—When, to prevent the breach of an obligation, it is necessary to compel the performance of certain acts which the court is capable of enforcing, the court may in its discretion grant an injunction to prevent the breach complained of, and also to compel performance of the requisite acts.
Section 39 Specific Relief Act: Mandatory injunctions
Bare Act text
Text of the Specific Relief Act, 1963 (Act No. 47 of 1963), as amended up to the Specific Relief (Amendment) Act, 2018. Source: India Code, Government of India.
In simple words
When it is necessary, to prevent breach of an obligation, to compel the performance of certain acts, the court can grant a mandatory injunction. This applies only where the court is capable of enforcing those acts. The court may, in its discretion, grant an injunction both to prevent the breach complained of and to compel the requisite acts. The grant is discretionary, not a matter of right.