Did you know…
Why do planes have layovers?
Short answer
Planes mostly have layovers for network economics: gathering passengers from many origins at a large connecting airport makes routes viable that a direct flight wouldn't fill. On top of that come each aircraft's range and load limits, traffic rights between countries, and crew rest rules on very long flights.

A network issue, not just a range one
Most layovers aren't because the aircraft can't make it there directly, but because there aren't enough passengers to fill a direct flight. An airline operating from a large connecting hub gathers travelers from dozens of origins onto a single aircraft bound for a distant destination, allowing it to offer daily flights to cities that, on their own demand, would only justify one flight a week. This model, known as hub and spoke, explains why flying from Bilbao to Bangkok means passing through Madrid, Frankfurt or Doha: the layover is what makes the route possible in the first place.
Technical limits
There are also layovers forced by physics. Every aircraft has a maximum range that depends on its load: the more passengers and baggage, the less fuel fits within the maximum takeoff weight. On very long routes or at hot, high-altitude airports, where engines perform less efficiently, a fuel stop may be the only way to operate with a full load. Until the 1980s, many flights between Europe and Asia stopped in Anchorage or the Gulf for this reason; today the Airbus A350-900ULR connects Singapore and New York, about 15,300 km, nonstop, but few aircraft and few routes allow it.
Traffic rights and crews
International flights are governed by bilateral agreements between countries that set which airlines may fly between them and how often. An airline may have the right to operate from A to B and from B to C, but not from A to C, making the layover a legal requirement. In addition, flight time duty regulations limit how many hours crews can work; ultra-long-haul flights require augmented crews and onboard rest areas, which raises operating costs and sometimes makes a layover with a crew change cheaper than a direct flight.
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…