1831, from French pièce de résistance, originally "the most substantial dish in a meal." Lit. "piece of resistance;" there seems to be disagreement as to the exact signification.
piece de resistance
pied a terre