"At last we started a match with the right tempo and unity," Ancelotti was quoted as saying by Calcio Italia.
"We were in control all the way through, even if there were a few tired legs at the end. The important thing is that we have rediscovered this team."
Milan's stuttering displays saw them crash out of the UEFA Champions League and Coppa Italia.
Their only realistic hope this season is to finish fourth in the Serie A to play in the Champions League next season.
The Rossoneri were boosted by the return of key duo Kaka and Filippo Inzaghi, who led the team to a convincing victory over Cagliari.
Kaka opened the scoring before Inzaghi netted a brace to ensure the victory.
"When Kaka is absent, you really notice, and tonight he was back to his usual standards. The problem was being without Inzaghi for a month."