If your flight has been overbooked, or if you're told you can't board the plane for another reason, this is known as 'denied boarding'.
Airlines that expect that they'll need to deny boarding to some passengers must first find volunteers to give up their reservation. If there aren't enough volunteers, airlines can deny boarding to passengers who didn't volunteer.
If you've volunteered to give up your reservation, you must agree with the airline the compensation you'll receive, such as vouchers.
In addition, you'll be automatically entitled to your choice of either:
Airlines must give boarding priority to passengers with reduced mobility and any people with them.
If you're denied boarding against your will, you'll be entitled to compensation, as described below. You must have a valid ticket and a confirmed reservation, and have been checked in by the deadline given by the airline.
You'll also be automatically entitled to your choice of either:
If the airline offers a flight from another airport, then it must pay to bring you there.
If you're waiting for another flight, you'll also be entitled to the following:
If the airline doesn't do this then you're entitled to claim an amount that is appropriate and reasonable for the costs you've incurred. Keep all your receipts.
You're entitled to claim compensation at the same levels as set out above in the tables for a flight that was cancelled.