Of the nations concerning which the LORD said unto the children of Israel, Ye shall not go in to them, neither shall they come in unto you: for surely they will turn away your heart after their gods: Solomon clave unto these in love.
The Lord warned the Israelites not to mix with certain nations because their gods could tempt them. However, Solomon still chose to connect with them out of affection.