William II de Ferrers, 4th Earl of Derby (c. 1168 – c. 1247) was a favourite of King John of England. He succeeded to the estate (but not the title) upon the death of his father, William de Ferrers, 3rd Earl of Derby, at the Siege of Acre in 1190. He was head of a family which controlled a large part of Derbyshire which included an area known as Duffield Frith.
He adopted his father's allegiance to King Richard as the reigning king. On Richard's return from the Third Crusade, in the company of David Ceannmhor and the Earl of Chester he played a leading role in besieging Nottingham Castle, on 28 March 1194, which was being held by supporters of Prince John. For seven weeks after this he held the position of Sheriff of Nottinghamshire and Derbyshire.
On the accession of John after the death of his brother, in 1199, William gave him his allegiance, and became a great favourite. He restored to the de Ferrars' family the title of Earl of Derby, along with the right to the "third penny", and soon afterwards bestowed upon him the manors of Ashbourne and Wirksworth, with the whole of that wapentake, subject to a fee farm rent of £70 per annum.
When, in 1213, John surrendered his kingdoms of England and Ireland to the Pope, William was one of the witnesses to the "Bulla Aurea." In the following year William gave surety on behalf of the king for the payment of a yearly tribute of 1,000 marks.
In the same year, 1214, the King granted the Earl the royal castle of Harestan (Horsley Castle). William was a patron of at least 2 abbeys and 4 priories. In 1216, John made him bailiff of the Peak Forest and warden of the Peak Castle.