A property is under contract when the seller accepts the formal offer from the buyer. There might be contingencies that are being negotiated and the deal is not closed.
The structure for the deal is in place yet agents will often get back up offers in case the original deal falls through.