When you leave a country you must first check-in with the airline to get your boarding pass.If there are a lot of people you must queue Then you go through immigration,where they check travel documents and the departure lounge to wait for your flight.