When Prince William eventually ascends to the English throne, he’ll be the first British monarch ever born in a hospital. And he has a man named George Pinker to thank for that.

Royal births have always been fraught affairs due to the thorny issues of birthright and succession. Throughout history, English royal women were expected to give birth in rooms filled with spectators and witnesses—in part to avoid a pretender to the throne being switched with the royal baby at birth.

That made childbirth a grueling ceremony for queens, many of whom had to give birth to stillborn or dying children in the company of scores of strangers. In 1688, after 11 tragic attempts to produce an heir to James II’s throne, Mary of Modena gave birth in front of an audience of 67 people. (It was even worse for Marie Antoinette, who gave birth in 1778 in front of so many people the onlookers nearly crushed her.) And even after births became more private affairs, archbishops and officials attended them as late as 1936.

Of course, doctors have long been part of that crowd. The royal household—the group of support staff that helps royals at their various residences—has included physicians for hundreds of years, who have often been called upon to perform various gynecological duties for royal women. They have frequently been dispatched to serve other family members, too, especially those giving birth to important heirs.

Even when hospitals became popular places for childbirth at the turn of the last century, English royals continued having kids at home in their palaces, castles, and houses. Elizabeth II was delivered via Caesarean section in 1926 at her grandmother’s house in London. When she became queen, her royal surgeon gynecologists recommended she deliver her children at home, bringing in equipment to turn the space into a maternity ward.

Yet it was one of her gynecologists, John Peel, who ended up changing his tune on delivering children in hospitals, and in the 1970s he published an influential report that recommended all women do so. When he stepped down in 1973, the queen’s new royal gynecologist, George Pinker, insisted the royals get in line, too.

Pinker was different from his predecessors. For one, he skipped out on a potential career in opera to practice medicine. He had been offered a contract with an opera company, but when asked to choose between music and medicine, the choice was clear. Instead, he stayed involved with music—becoming assistant concert director at the Reading Symphony Orchestra and vice president of the London Choral Society—while maintaining his medical career.

He was also the youngest doctor ever to practice as royal surgeon gynecologist—just 48 when he was appointed. He supported controversial medical advances like in vitro fertilization. And he insisted that his patients’ welfare—not tradition—dictate royal births.

“It is very important for mothers to accept modern medical assistance and not to feel guilty if they need epidural or a Caesarean,” he told an interviewer. Pinker recommended that pregnant women lead as normal a life as possible—no easy task for royals whose every move was spied on and picked apart by the public. In fact, the doctor being anywhere near the queen or her family, even when he was not there to treat a pregnant woman, was seen as a sign that a royal was pregnant.

When Princess Diana delivered her first son, it was at a royal room in a hospital. “Most people marveled at the decision to have the royal baby in such surroundings rather than Buckingham Palace,” wrote The Guardian’s Penny Chorlton. Turns out the surroundings were pretty plush anyway: Diana delivered in her very own wing of the hospital.

Pinker served as the queen’s royal gynecologist for 17 years, delivering nine royal babies in all, including Prince William and Prince Harry. All were born at hospitals. So were William’s two children—under supervision of the royal gynecologist, of course.