The last trading day is the final day on which a particular option or futures contract can be bought or sold. After the close of trading on that day, a holder can no longer exit by an offsetting trade, and any open position is settled according to the contract terms. For standard monthly US equity options it is the third Friday of the expiration month, which is also the expiration date. Some index options that settle on opening prices stop trading on the business day before.
At option expiry, contracts that are in the money are normally exercised automatically and the rest lapse. In futures, the day is set by the exchange for each contract, and positions left open go to physical delivery or cash settlement. Liquidity often thins as the day approaches, so most traders close out or carry out a futures rollover beforehand.