If we searched for the aim or goal for that...
If we searched for the aim or goal for that, we would reach a certain and bitter conclusion, which is; those who ruled the Muslims during the Umayyad dynasty, the chief of whom was Mu'awiya b. Abu Sufyan, did not believe, for a day, that Muhammad b. 'Abd Allah was sent with God's message or that he was truly God's Messenger.
Most probably, they believed that he was a magician who overwhelmed the people and built a kingdom at the cost of the downtrodden people, especially the slaves who supported and helped him in his claims. This is not mere conjecture, since some conjectures can be sinful. When we read the historical works to study the character of Mu'awiya and those around him, and what he did during his lifespan, especially when he ruled, the conjecture becomes a reality; there is no escape from it.
All of us know who Mu'awiya is and who his father Abu Sufyan and his mother Hind are. He is the freed slave, son of a freed slave, who spent his youth in the circle of his father mobilizing an army to fight the Prophet of God and to opposing his mission with all effort. When all his attempts failed and when the Prophet of God (S.A.W.) emerged victorious over him and his father, he accepted Islam for pragmatic reasons without any conviction.
The Prophet, due to his nobility and great character, forgave him and called him the freed man ( al-taliq) . After the death of the bearer of the message, his (Mu'awiya's) father tried to instigate discord and sedition in Islam. That was when, at night, he came to Imam 'Ali to incite him to rise against Abu Bakr and 'Umar and tempting him with property and men. Imam 'Ali (A.S.) knew his aim and so ignored him.
He remained living in rancor against Islam and Muslims for the whole of his life until the Caliphate came to his cousin 'Uthman. At that time, the disbelief and hypocrisy lying within him surfaced and he said: "Seize it, seize it again, by what Abu Sufyan swears, there is neither heaven nor hell.” Ibn Asakir has reported in his historical work in the sixth volume, page 407, from Anas, that Abu Sufyan visited 'Uthman after he had become blind.
He asked him: "Is there anyone around?" They said: "No.” He said: "O God, make the matters [as they were] at the time of the Jahiliyya and the kingdom [belong] to the usurpers and make the Banu Umayyads the tent pegs ( awtad ) of the earth.” As for his son Mu'awiya, what do you know about Mu'awiya?