Solomon built such shrines for all his foreign wives to use for burning incense and sacrificing to their gods.