We test whether payments for ecosystem services (PES) can curb the highly polluting practice of crop residue burning in India. Standard PES contracts pay participants after verification that they met a proenvironment condition (clearing fields without burning). We randomize paying a portion of the money up front and unconditionally to address liquidity constraints and farmer distrust, which may undermine the standard contract's effectiveness. Incorporating partial up-front payment into the contract increases compliance by 10 percentage points, which is corroborated by satellite-based burning measurements. The cost per life saved is $3,600–$5,400. The standard PES contract has no effect on burning.