Polytheism شرك is to worship with Allah some one or something else. Those who did polytheism in the past then left it and became Muslims will be forgiven because they have left polytheism, but those who insisted on polytheism and died with it, will not be forgiven as you read in (Quran 4:48).
Wassalam.