MRZ stands for Machine-Readable Zone.
The format is set by ICAO, the UN's civil aviation agency, so a scanner at any airport can read a passport from anywhere. On a passport it's two lines of 44 characters. Identity cards use three shorter lines, and visas have their own version.
Line one starts with P for passport, then the issuing country's three-letter code, then the name: surname first, two chevrons, then the given names, with single chevrons standing in for spaces. Line two holds the passport number, nationality, date of birth, sex and expiry date, with dates written year-month-day, plus check digits that let a scanner catch a misread. The chevrons (<) are only filler, padding each field to its fixed length.
In ICAO's specimen below, UTO is Utopia, the fictional country ICAO uses so that nobody's real passport ends up in a manual. L898902C3 is the passport number, 740812 the date of birth (12 August 1974) and 120415 the expiry date (15 April 2012), each followed by its check digit.
Scanners at check-in desks and border kiosks read your details from here, and it's usually where the advance passenger information sent before international flights comes from. Accents are converted to plain letters (Ö may become O or OE) and very long names are cut short to fit. If the name on your booking and your passport don't line up, see what to do when they don't match.
On an e-passport, the MRZ also unlocks the chip: a reader uses the passport number, date of birth and expiry date in it to open a secure connection. Treat a photo of your photo page with the same care as the passport itself.
P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<< / L898902C36UTO7408122F1204159ZE184226B<<<<<10
Where you'll find it
At the bottom of a passport's photo page, on the back of most ID cards, and along the bottom of a visa sticker.