Article 2384 of the French Civil Code
The rights of a creditor holding a right of pledge on immovable property are extinguished in particular: 1° By the extinction of the principal obligation; 2° By the early restitution of the immovable property to its owner.