Marwan bin Muhammad bin Marwan was caliph for five years, and then the caliphate was seized from him.