An order with a price boundary – buy only at the limit or lower, sell only at the limit or higher.
If matching orders exist, a limit order executes immediately; otherwise it rests in the order book until it fills, expires or you cancel it. Limit orders protect you from unpleasant price surprises, at the cost of possibly not being filled.