Crystal Palace's Ian Moody has resigned following accusations of offensive texts shared between him and his former Cardiff City colleague Malky Mackay.
The revelations that the pair shared texts of a homophobic, racist and sexist nature broke after Mackay was interviewed by Palace for their vacant managerial position.
Palace's former manager Tony Pulis left the club last week, and Mackay had been made the favourite to take over due to his close working relationship with Moody during their time at Cardiff.
But after Mackay's interview, it was revealed that Cardiff had submitted a report to the FA alleging 'misconduct' by the pair, and after the nature of the texts were revealed, Palace immediately ruled Mackay out of the running.
Moody's resignation was confirmed by the club today, who stated "In light of the events, Iain Moody has tendered his resignation and it has been accepted with immediate effect."
The pair were at Cardiff City last season, but Moody was sacked by owner Vincent Tan in an apparent attempt to force Mackay to resign. Mackay was eventually sacked and Moody took up his position at Palace under former manager Tony Pulis.
The pair entered a dispute with their former employers about the manner of their dismissal, which was eventually dropped in May, with Mackay apologising to Tan.
Moody was also at the centre of the 'spygate' scandal, when Palace beat Cardiff 3-0 and the Welsh side alleged that their starting line up had been 'leaked' to Palace prior to the game, though the club and Moody have denied any wrong doing.
The FA has confirmed it received a detailed account of issues relating to the pair from their time at Cardiff and said it was "currently investigating this matter".
Cardiff, Mackay, Moody and Palace have not commented on the latest allegations, though it is thought Palace were not aware of them until Wednesday.
Palace's search for a new manager has former Spurs manager Tim Sherwood as the favourite now to take the role.