The series had its origin in two short plays: one about Anthony and Lulu, and one about Sam and Fred. They were well received, and Waller-Bridge was convinced to expand the story into a screenplay.
The series was filmed in the old Royal London Hospital in Whitechapel, but Phoebe Waller-Bridge based much of the story on a visit to the Middlesex Hospital in Fitzrovia.