How it works
A market order does not wait. It is matched at once against the resting orders on the other side, starting with the nearest price and moving through the book until the full amount is filled. You get certainty of execution and give up control of the price. It takes liquidity from the book, so exchanges charge it the higher taker fee.
Example with numbers
You want out of a 2 ETH position now. The highest bid is $2,050 for 1.2 ETH and the next is $2,049 for 5 ETH. A market sell fills 1.2 at $2,050 and 0.8 at $2,049, an average of $2,049.60, minus the taker fee.
The common mistake
Using market orders by habit on every entry. On liquid pairs the cost is small, yet over hundreds of trades spread, slippage and taker fees add up to a meaningful part of the result. Keep market orders for exits that must happen and for moments when missing the trade costs more than the spread.