Spartak have reportedly signed the 27-year-old on a three-and-a-half year contract. No financial details of the deal were disclosed.
Hanni scored 18 goals in 61 league matches for Anderlecht, helping the club win the title last season, and has netted four international goals.
Download our app and read this and other great stories on the move. Available for Android and iOS.