What is a codeshare flight?
A codeshare is a flight sold by one airline but operated by another. You book with airline A, the ticket carries airline A's flight number, and the aircraft, crew and service belong to airline B.
Airlines do this to offer routes they do not fly themselves. Rather than putting aircraft on a thin route, an airline can sell seats on a partner's flight and present a single connected itinerary. It is why an airline's route map often looks far larger than its fleet would allow.
The practical consequences are worth knowing, because several things follow the operating carrier rather than the one you booked with.
Baggage allowance usually follows the operating carrier, and it can differ substantially from what you expected.
Seat selection often has to be done through the operating carrier's website, and the booking reference may differ from the one you were given.
Check-in is normally at the operating carrier's desk, which catches people out at unfamiliar airports.
Service, aircraft and cabin layout are theirs, so a premium cabin you booked may not match the standard you were expecting.
Frequent flyer points vary. Earning usually depends on the fare class and the agreement between the airlines, and it is common to earn less than on a directly operated flight.
When things go wrong, responsibility generally rests with the operating carrier, though your contract is with the seller — which can make claims slower.
Booking sites are required to disclose the operating carrier, usually in small print reading "operated by". It is worth checking before booking rather than discovering it at the airport.
A franchise or wet lease arrangement is different again, where an aircraft flies fully in another airline's livery.