In details, there are three categories of Tawhid (belief in the Oneness of Allah): TawhidulRububiyyah (Oneness of Allah's Lordship); TawhidulUluhiyyah (Oneness of Worship) and TawhidulAsma' walSifat (Oneness of Allah's Names and Attributes). Mushriks (ones who associates others with Allah in His Divinity or worship) did not deny TawhidulRububiyyah, but this had not led them to embrace Islam because they did not dedicate the acts of worship exclusively to Allah. Also, they did admit TawhidulUluhiyyah though they believed that Allah is the Creator, the Provider and their Lord. Having refused to dedicate worship to Allah Alone, the Prophet (peace be upon him) engaged in fighting them to enforce them to make worship exclusive to Allah Alone.
TawhidulRububiyyah signifies the confirmation of the actions of Allah, His managing and disposing of the affairs of the universe. In other words, a person testifies that Allah is the Creator, the Provider, the Manager, and Disposer of all affairs. He gives and withholds; degrades and upgrades; honors and humiliates; gives life and causes death and over everything is Competent.
The Mushriks confirmed all these actions. Allah (may He be Praised) says: And if you ask them who created them, they will surely say: "Allâh."
He (may He be Praised) says: And if you (O Muhammad ﺻﻠﻰ ﺍﷲ ﻋﻠﻴﻪ ﻭﺳﻠﻢ) ask them: "Who has created the heavens and the earth," they will certainly say: "Allâh." He (Exalted be He) says: Say (O Muhammad ﺻﻠﻰ ﺍﷲ ﻋﻠﻴﻪ ﻭﺳﻠﻢ): "Who provides for you from the sky and the earth? Or who owns hearing and sight? And who brings out the living from the dead and brings out the dead from the living? And who disposes the affairs?" They will say: "Allâh." Say: "Will you not then be afraid of Allâh's punishment (for setting up rivals in worship with Allâh)?"
These Ayahs (Qur'anic verses) show that they confirm such facts but this confirmation did not drive them to dedicate acts of worship exclusively to Allah (Glorified and Exalted be He). Instead, they set up rivals with Him and claimed that they were intercessors who will bring them closer to Allah.
Allah (Exalted be He) says: And they worship besides Allâh things that harm them not, nor profit them, and they say: "These are our intercessors with Allâh." Allah (may He be Praised) replied to them saying: And they worship besides Allâh things that harm them not, nor profit them, and they say: "These are our intercessors with Allâh." Say: "Do you inform Allâh of that which He knows not in the heavens and on the earth?" Glorified and Exalted is He above all that which they associate as partners (with Him)!
Allah (may He be Praised) does not have a partner in the heavens or on earth; He is the One, the Sole, the Independent, and the Everlasting (Glorified and Exalted be He) Who is worthy of worship. Allah (Glorified and Exalted be He) says: So worship Allâh (Alone) by doing religious deeds sincerely for Allâh's sake only. Surely the religion (i.e. the worship and the obedience) is for Allâh only.
Also, He (may He be Praised) says: And those who take Auliyâ' (protectors, helpers, lords, gods) besides Him (say): "We worship them only that they may bring us near to Allâh." It implies that they did not worship others with Allah because they cause harm or bring about benefit or because they create, provide, or dispose the affairs; they only worshipped others to bring them nearer to Allah and intercede with Him on their behalf. In the Ayah mentioned above in Surah (Qur'anic chapter) Yunus, they stated: These are our intercessors with Allâh.
Now, it becomes clear that the Mushriks did not believe that their deities bring about benefit or cause harm; give life or cause death; provide sustenance or withhold it. Rather, they worshipped them to act as intercessors on their behalf and bring them closer to Allah. Mushriks in the past did not worship AlLat, Al `Uzza, Manat, Jesus, Mary or righteous people because they bring about benefit or cause harm but they worshipped them because they wish for their intercession and that they bring them near to Allah.
Nevertheless, Allah described them with Shirk (associating others with Allah in His Divinity or worship) in His saying: And they worship besides Allâh things that harm them not, nor profit them, and they say: "These are our intercessors with Allâh." Say: "Do you inform Allâh of that which He knows not in the heavens and on the earth?" Glorified and Exalted is He above all that which they associate as partners (with Him)! The Ayah of Surah AlZumar reads: Verily, Allâh will judge between them concerning that wherein they differ. Truly, Allâh guides not him who is a liar, and a disbeliever. He called them disbelievers and liars when they claimed that they worship them only that they may bring them near to Allah. Allah stated that they are liars in the claim that their deities bring them near to Allah, and judged them as disbelievers as they dedicate acts of worship, such as slaughtering animals, making vows, seeking relief and the like to them.
The Prophet (peace be upon him) invited them for ten years saying: O people, say: "There is no one has the right to be worshipped but Allah," to prosper. Most of them turned away from him, except a few, and concluded to kill him. Allah saved him from their evil plots and he (peace be upon him) migrated to Madinah where he established the Shari`ah (Islamic law) of Allah and called people to Him. His call was welcomed by AlAnsar (may Allah be pleased with them) and they made Jihad with him in collaboration with AlMuhajirun who migrated from Quraysh and elsewhere until Allah made his religion prevail and His Word reign supreme, while humiliating the disbelievers.