Dahl's inspiration for "Charlie and the Chocolate Factory" came from his own fascination with the Cadbury chocolate factory in Birmingham, England. As a child, Dahl would often imagine what went on inside the factory, creating fantastical stories about the chocolate-making process. Additionally, his experiences as a student at Repton School, where he would often receive chocolates from local manufacturers for testing, influenced his depiction of the Wonka Chocolate Factory.