To arrange the events from the first to the last, the correct order is:
- Abu Bakr becomes caliph
- Muhammad's cousin Ali becomes caliph
- The caliphate passed to the Umayyad family
- The caliph and the Byzantine emperor signed a treaty to jointly rule the island of Cyprus