Courts may refuse specific performance when fulfilling the contract would result in excessive hardship on one party or contravene public policy. They will also consider if mutual mistakes were made or if there were misrepresentations during the agreement process.
For example: If fulfilling a contract to sell land would force someone from their family home and livelihood with no comparable benefit, a court might refuse specific performance on grounds of hardship.