A 17-year-old youth has been charged with the murder of teenager Ellie Gould, Wiltshire Police has said.
Ellie, 17, was a year 12 pupil at Hardenhuish School in Chippenham, and was pronounced dead at a house in Calne on Friday afternoon.
Police detained the suspect in the nearby town of Chippenham later that afternoon.
The youth, who cannot be named because of his age, is due to appear before Salisbury Magistrates' Court on Tuesday.
Inspector Don Pocock said: "A case like this takes time and will understandably have an impact on the local community - so thank you for your help and understanding.
"Over the past few days, people living in Calne and Chippenham would have seen an increased police presence which I appreciate can add more anxiety and upset to what is already a tragic situation.
"However, I want to reassure everyone that the officers and detectives involved have been working hard to carry out their duties as swiftly as possible to minimise the impact on those living and working here."
Hardenhuish School headteacher Lisa Percy, said: "I would like to thank everyone for all of the messages of support that we have received from past, present and future parents, colleagues and other members of the community.
"We would like to express our thanks to all partner agencies who have supported us too.
"The students, staff and parents have found comfort in being together and paying their respects to Ellie and our thoughts remain with her family and friends at this time."