Did you know…
Can you leave the airport during a layover?
Short answer
Yes, you can leave the airport during a layover if three conditions are met: enough time (at least four or five hours), permission to enter that country (a visa if required, even for transit) and luggage that isn't checked through and blocking you. On return you must clear security again and, sometimes, passport control.

Layover, connection and real time
A layover is the intermediate stop between two legs of a trip. If it lasts one or two hours, the sensible choice is to stay in the transit area. From four or five hours onward, leaving becomes practical at airports well connected to the city, such as Amsterdam, Munich, Istanbul or Singapore, where a train or metro reaches downtown in under half an hour. You need to add passport control, the round trip itself, and the margin the airline requires before gate boarding, usually 60 to 90 minutes on international flights.
Entry requirements
Leaving the airport means entering the country. With an EU passport that requires no formality within the Schengen area, but anyone who needs a visa for that country cannot leave the transit zone even if their flight is a mere stopover; some states even require a transit visa without ever leaving the terminal. The United States and Canada require every connecting passenger to clear immigration and collect their luggage, so leaving the customs area there is unavoidable. Several hubs actively encourage the visit: Singapore, Doha, Istanbul and Taipei offer free excursions to passengers with long layovers.
Luggage and ticket
If the luggage is checked through to the final destination, it continues on its own without the passenger's intervention. If the flights are on separate tickets, it must be collected, carried out and checked in again, which multiplies the time needed. On return, passengers go through the security filter again and, on international layovers, outbound passport control. It's best to have the boarding pass for the second leg before leaving the terminal.
More questions

Foto: 4300streetcar (CC BY 4.0) Commercial aviation
Which 747 carried Enterprise "piggyback"?
The first Shuttle Carrier Aircraft was a Boeing 747-123 registered N905NA, originally built for American Airlines and acquired by NASA in 1974. Boeing… more…

Commercial aviation
Was there an amphibious DC-3?
Yes: the Douglas XC-47C was created by fitting Edo Model 78 floats onto a standard C-47. The single-step metal floats carried retractable wheels that also… more…
_Berliner_Luftbr%C3%BCcke.jpg)
OTFW, Berlin (CC BY SA), vía commons Commercial aviation
Was a C-47 converted into a glider?
Yes: the Douglas XCG-17 was an assault glider created by converting a twin-engine C-47 Skytrain during World War II. Its engines were removed and the nacelles… more…

Commercial aviation
What did the USSR build from the DC-3?
The USSR built a version of the DC-3 under a licence granted to its government on 15 July 1936. It was designated PS-84 and, in 1942, renamed Lisunov Li-2… more…

Commercial aviation
What was "Puff, the Magic Dragon"?
It was the nickname of the Douglas AC-47 Spooky, the first in a series of fixed-wing gunships developed by the United States Air Force during the Vietnam War… more…

Commercial aviation
How did the RAF refer to the C-47?
The RAF called it Dakota: the Dakota I was the designation for 53 C-47s received under Lend-Lease. The Dakota III designated 962 C-47A Skytrains. The Dakota… more…