The Zirids fail in 987 to reconquer the western part of the Maghrib, which they have recently lost to the Umayyads.