Polygamy is legal in the Torah - Jacob married two sisters, which was banned by later legislation.
Nowhere is monogamy mentioned as an ideal in the Bible.