Between May 1367 and September 1370 repairs costing £2,262 were carried out. Records show that sections of the curtain wall were repaired and two mural towers built, one of them replacing a tower on the same site. The towers were positioned north-east of the keep and still stand. More work was undertaken between 1370 and 1377, the year of Edward's death. The royal apartments built during Henry III's reign were never repaired; it has been suggested this was because by the 14th century, when considerable sums were being spent on repairs elsewhere in the castle, Rochester had fallen out of favour as a royal residence. As the castle's importance as a high-status residence waned, its role as a barracks and administrative centre came to the fore. The reign of Richard II (1377–1400) saw the investment of £500 in repairing the castle. This was in part in response to French raids on England's southern coast during the Hundred Years' War as England's fortunes in the conflict worsened. The most significant of these works was the construction of a tower at the north end of the castle, overlooking the bridge over the Medway. Records document the sum of £350 spent on a new tower between 1378 and 1383, and it mostly likely refers to the one guarding the bridge. Rochester Castle saw fighting for the final time during the Peasants' Revolt of 1381. It was besieged and captured by a group of rebels who plundered the castle and released a prisoner. It has been suggested that the £66 10s spent in 1384–1388 and the £91 13s spent in 1395–1397 may have been partially in response to damage incurred during the revolt.