Limit Order, Explained

When placing a buy or sell order for a stock or ETF, I’m typically prompted to indicate whether my order is a limit or market one. What’s the difference and why does it matter?