Nearby Fotheringhay Castle was the principal home of two Dukes of York. Edward of Norwich, 2nd Duke of York, who was killed at the Battle of Agincourt in 1415 was buried in the church. He had earlier established a college for a master and twelve chaplains at the location. Edward's burial provided the basis for the later adoption of the church as a mausoleum to the Yorkist dynasty. In 1476 the church witnessed one of the most elaborate ceremonies of Edward IV's reign – the re-interment of the bodies of the king's father Richard Plantagenet, 3rd Duke of York and his younger brother Edmund, Earl of Rutland, who had been buried in a humble tomb at Pontefract. Father and son fell at the Battle of Wakefield on 30 December 1460.