The former Millwall player has scored two international goals, having previously played for Northern Ireland at Under-21, U19 and U17 level.
His final season with Rotherham was marred by injury.
“I’m delighted to be coming home and once I had spoken with Tiernan and heard his plans for the club, it was a simple decision,” Ferguson told the Derry City FC website.
“I’ve been training hard after a frustrating last season and I’m feeling very strong. I will really benefit now from a full pre-season and be ready to go when the new campaign starts.
“Derry City is obviously a club I know a bit about and I’m well aware of how passionate that support base is. I’m really looking forward to doing my bit to hopefully bring success to the Brandywell.”
Fleetwood Town have sacked manager Charlie Adam after just under a year in the job following a run of one win in their past 11 league games.The Cod Army lost 2-
Anthony Joshua's heavyweight title clash with Daniel Dubois was the most in-demand UK sporting event of the year according to data from ticket marketplace Viago
Neither Tyson Fury nor Oleksandr Usyk wanted to be drawn on their next move in the immediate aftermath of Saturday's world champio
Sign up to our free sport newsletter for all the latest news on everything from cycling to boxingSign up to our free sport email for all the latest newsSign up