The destruction of goods can affect a contract for sale in different ways depending on when the destruction occurs and whether the goods are specific or unascertained. If goods are destroyed after the risk has passed to the buyer, the contract remains valid and the buyer bears the loss. However, if specific goods are destroyed before the contract is formed or after agreement but before risk passes, the contract is void. For unascertained goods, the contract remains valid even if the goods are destroyed before formation of the contract, and the seller must still perform or pay damages for breach.