Luciano Spalletti has stepped down from his position as Roma manager, two days after leading his side to a second-place finish in Serie A.

Under the 58-year-old’s guidance in the past season, Roma won more Serie A points and scored more goals than any side in the club’s history, but ultimately fell short of Juventus by four points in the final standings. Spalletti has been linked with the manager’s role at Internazionale, who have yet to appoint a permanent replacement for Stefano Pioli.

“We would like to place on record our sincere thanks to Luciano Spalletti for all of his hard work and the significant contribution he has made to the club since his return,” said the Roma president, James Pallotta, in a statement on the club’s website.

“This club is on a constant path of growth and that will continue with the appointment of a new coach who shares our values and philosophy and who will continue to help us take AS Roma forward.”

The announcement comes two days after Francesco Totti’s final game for the club after 25 years. The 40-year-old Italian scored 307 goals in 786 games and came on in Roma’s 3-2 win over Genoa to a standing ovation on Sunday.