The roles of Gavin and Stacey were cast through an auditioning process, but were almost immediately given to Mathew Horne and Joanna Page on the strength of their chemistry together. The roles of Nessa and Smithy were written by Corden and Jones for themselves. Some roles were written with certain actors in mind; Uncle Bryn was written specifically for Rob Brydon, who had been to school with Jones, whilst Pam was written specifically for Alison Steadman, who had also worked on "Fat Friends". Jones had worked with Julia Davis in her sitcom "Nighty Night", and the role of Dawn was written with her in mind. Additionally, Corden had appeared with Adrian Scarborough in the Alan Bennett-penned play and film, "The History Boys", which led to him being cast in the role of Pete. An audition process was used to cast the roles of Mick and Gwen, whilst the roles of Gavin's friends were given to Corden's co-stars in "The History Boys".