Muawiyah ibn Abi Sufyan (ra) did not pledge allegiance to Ali (ra) after the killing of Uthman (ra) in 35 AH because he demanded that the killers be dealt with first, and Ali (ra) believed order had to be restored before the case could be judged.
- His stated reason: he was Uthman's cousin and governor of Syria, and he insisted that justice for the murder come before allegiance.
- Ali's position: he held that the rebels were numerous and armed, that the killers could not be identified and seized in the middle of unrest, and that stability had to come first.
- What followed: the Battle of the Camel, the Battle of Siffin (37 AH) and an inconclusive arbitration; Muawiyah (ra) became caliph in 41 AH after al-Hasan (ra) made peace.
- Sunni scholars: they hold that Ali (ra) was the rightful caliph and closer to the truth, and that those who fought him acted from interpretation (ijtihad) and are not to be condemned.
Introduction
This is one of the most sensitive questions in early Islamic history. The main events are agreed by Sunni and Shia sources. What differs is how they are explained and judged. This answer concentrates on what the sources record, notes where scholars differ, and tries to avoid language that goes beyond the evidence.
The background
Uthman (ra) was killed by rebels who had besieged his house in Madinah in Dhu al-Hijja 35 AH. The people of Madinah gave their allegiance to Ali (ra), and the allegiance was accepted in most of the other provinces. Soon after, Ali (ra) replaced several governors, including Muawiyah, who had been governor of Syria for about twenty years and who was a cousin of Uthman (ra).
Why Muawiyah did not give allegiance
According to the historians, Muawiyah (ra) refused to give allegiance until the killers of Uthman (ra) were dealt with. His supporters displayed the blood-stained shirt of Uthman (ra) in Damascus as a call for justice. He did not at first claim the caliphate for himself and presented his position as seeking retribution for a murdered caliph who was also his kinsman. Ali (ra) is reported to have replied that he too was grieved by the killing, that the rebels included powerful tribal groups, and that the case should be brought before the community once it had pledged allegiance, so that the matter could be judged in a proper court. The sources describe envoys going back and forth without agreement.
Two things should be noted. First, the sources written by supporters of each side present the motives differently, and later Abbasid-era narrations are often shaped by those loyalties. Second, scholars distinguish between the stated reason and the wider political situation, in which Syria had a strong army and an experienced governor, and the question of authority was bound up with who could enforce justice.
What happened next
The disagreement led to war. After the Battle of the Camel (36 AH), in which A'isha, Talha and al-Zubayr (ra) were involved in a separate dispute with Ali (ra), the armies of Ali (ra) and Muawiyah (ra) met at Siffin in 37 AH. The fighting ended with an agreement to arbitrate, which produced no settlement, and the Khawarij then broke away from Ali's (ra) army. Ali (ra) was assassinated by a Khariji in 40 AH, and after a short period his son al-Hasan (ra) agreed to peace with Muawiyah (ra). The Prophet (saw) had said that through al-Hasan Allah would reconcile two large groups of Muslims (Sahih al-Bukhari 2704), and the year 41 AH is remembered as the Year of the Community.
How Sunni scholars judge the dispute
The Prophet (saw) is reported in Sahih al-Bukhari (447) and Sahih Muslim (2916) to have said to Ammar ibn Yasir (ra) that a rebellious group would kill him, and that he would call them to Paradise while they called him to the Fire. Ammar (ra) was killed at Siffin fighting with Ali (ra). Many scholars, from the early period onward, have drawn from this that Ali (ra) was the one closer to the truth. At the same time, the majority position of Ahl al-Sunna is that Muawiyah (ra) and those with him acted from ijtihad, that a mujtahid who errs has a reward, and that the Companions should not be reviled. The balance of this position is that one can say Ali (ra) was right without cursing or condemning others of the Companions.
Some other readers, including many Shia writers and some modern historians, emphasise the political ambition of Muawiyah (ra), and point out that he later established a hereditary succession. Others emphasise his ability as an administrator and his role in ending the civil war. The question 'why did he refuse' is therefore answered in different ways according to the reader's view of his motives, which the sources record only indirectly.
Conclusion
The sources record that Muawiyah (ra) refused to pledge allegiance because he insisted on justice for the murder of Uthman (ra) before anything else, while Ali (ra) argued that order had to come first. The Sunni scholarly position is that Ali (ra) was the rightful caliph and closer to the truth, that Muawiyah's (ra) side acted from interpretation, and that restraint in speaking about the Companions is required. Readers who want the full account should consult both classical histories and modern academic ones, and keep in mind that most narrations were written down later.
References
Sahih al-Bukhari 447, 2704
Sahih Muslim 2916
al-Tabari, Tarikh al-Rusul wa'l-Muluk
Ibn Kathir, al-Bidaya wa'l-Nihaya
Ibn Hajar al-Asqalani, Fath al-Bari
Wilferd Madelung, The Succession to Muhammad
Encyclopaedia of Islam, "Siffin" and "Mu'awiya"