LONDON — In Britain’s Parliament one day this week, a rising wall of sound echoed around the chamber as lawmakers jeered Prime Minister Boris Johnson. Or cheered him.

The prime minister’s hand jabbed the air for emphasis as he tried to be heard above the noise.

Then came the inevitable, familiar rebuke. In booming if strangled tones, the speaker of the House of Commons, John Bercow, was demanding “Order!” — for almost the last time.

In a decade as speaker that ended on Thursday, Mr. Bercow has silenced legislators this way almost 14,000 times, according to one analysis, as well as chiding politicians in famously antiquated language for “chuntering from a sedentary position” (talking while seated). Sometimes he likened them to mischievous children (“Be a good boy, young man!”).

With Brexit thrusting Parliament onto center stage, Mr. Bercow’s love of the limelight made him a celebrity, the star of a painful political drama that at one point drew more than 1.5 million viewers to the niche Parliament channel on the BBC.