"Last-minute" describes something done or decided at the latest possible time or just before something is due to happen or finish. It can be an adjective describing a noun, such as a "last-minute cancellation". It can also be used as a noun phrase, like "at the last minute," meaning the latest possible moment.