Siege of Trenzalore
The Siege of Trenzalore was a conflict which lasted for more than 300 years initiated by a message broadcast through time and space that no one could understand.
History
The Beginning
The Papal Mainframe arrived at Trenzalore first and, recognising the significance of the message, created a force field around the planet to protect the small village there. Unknown to them, Weeping Angels had already arrived and hidden in the snow planetside. By the time the Doctor arrived hundreds of starships had gathered, including those of the Daleks, Cybermen, Sontarans, Slitheen, Judoon, Terileptils, Silurians and Ice Warriors (possibly the Monoids, Racnoss, and Pyroviles also participated). Mother Superious Tasha Lem assisted the Doctor and Clara Oswald reaching the planet.
When the broadcast was revealed to be the First Question, sent from Gallifrey, trapped in a pocket universe and emanating through a crack in time and space, the Doctor refused to leave the planet to be destroyed by his enemies in space, all of whom would seek the destruction of the Time Lords. However, he also wouldn't bring the Time Lords back through the crack, fearing the Last Great Time War would start anew. Tasha Lem, changing the faith of the Papal Mainframe into one of silence (to prevent the Doctor saying his name, bringing the Time Lords back and restarting the Time War), initiated the Siege of Trenzalore. (TV: The Time of the Doctor)
The Conflict
Over the next three centuries each of the Doctor's enemies tried various means of penetrating the force field created by the Church of Silence, each time defeated by the Doctor's ingenuity. It was during this time that the Kovarian Chapter led by Madame Kovarian broke away from the Church, travelled back along the Eleventh Doctor's time stream and attempted to kill the Doctor so he would never reach Trenzalore. (TV: The Impossible Astronaut/Day of the Moon, A Good Man Goes to War/Let's Kill Hitler, Closing Time, The Wedding of River Song) Their first attempt involved them blowing up the TARDIS which the Doctor prevented. (TV: The Pandorica Opens/The Big Bang) However, in doing this, Kovarian her faction ended up creating the cracks in time in the first place, effectively causing what they sought to prevent. The Doctor called this the Destiny Trap: "You can't change history if you're part of it."
While the fleets above Trenzalore made various attempts to sneak past the force field - such as the Sontarans using an invisibility cloak or the Cybermen using a low-tech wooden unit - the Daleks turned their attention to the Church itself. After calling for reinforcements, they assaulted the Mainframe, turned everyone into Dalek puppets and penetrated the field afterwards, followed by the Cybermen and the other fleets. Allying himself with the Papal Mainframe's soldiers and Confessional Priests (now known as the Silents), the Doctor repelled each attack, and eventually all attackers had either been destroyed or had retreated save for the Daleks who continued to attack the village in Dalek Fighter Pods and a massive Dalek saucer. The Doctor, dying of old age by this time, made ready to sacrifice himself to the Daleks when he was granted a new regeneration cycle by the Time Lords through the crack in time at the request of Clara Oswald, and used his excess regeneration energy to destroy the Dalek forces, effectively ending the siege. (TV: The Time of the Doctor)
Aftermath
With the Daleks defeated, the people of Christmas saved and the crack closed by the Time Lords, the Doctor retreated to his TARDIS. After an emotional goodbye to Clara Oswald, he finally succumbed to old age and regenerated into the Twelfth Doctor. (TV: The Time of the Doctor)
At somepoint in the planet's past or future the Doctor visited made his first visit to Trenzalore. At this point Trenzalore was a cracked, ruined world, rather than the beautiful planet it was when would arrive the 2nd time. There he saw millions of tombs and graves, the result of a battle, the largest of which was his own, in the form of his dying TARDIS. It is unknown if the graveyards and devestation is a result of the Siege or not. It is unknown if the events surrounding the Doctor's regeneration on Trenzalore changed these events or if they will proceed as the Doctor has experienced them in his past. (TV: The Name of the Doctor, The Time of the Doctor)