They worshipped an idol over God. This was God's first commandment, do not worship other gods before him.