It was located in the south-west of England. Close by, and to the west, was the Welsh border. Also to the west was Dean Forest Park. To the south-west was Chipping Sodbury and to the south was Stroud. (TV: The Categories of Life) Leadworth, home to Amy Pond and Rory Williams, was a half-hour drive from Gloucester. (TV: The Eleventh Hour)
West Country Children's Home was located in Gloucester. The Twelfth Doctor and Clara Oswald visited it in the 1990s and saw Danny Pink as a child. Clara also claimed that she had never been to Gloucester but the Doctor ignored it, saying that she had likely simply forgotten. (TV: Listen)
In 2008, the Eleventh Doctor suggested going to Gloucester, as the nearest city to Leadworth, in an effort to stop the Atraxi from destroying the world in their search for Prisoner Zero. The Doctor was put off the idea when he discovered the city wasn't actually reachable, given the time remaining and the tools at his disposal. (TV: The Eleventh Hour)
One purported incarnation of the Doctor hid in Gloucester in the 21st century. Under a Chameleon Arch, the Doctor disguised herself as the human tour guide "Ruth Clayton", who remembered moving there in December 1999. (TV: Fugitive of the Judoon)
Behind the scenes
Exterior scenes for The Next Doctor were filmed in Gloucester.