Hiram is a type of the most worldly aspects of the world. Solomon made an agreement with the world when he made the agreement with Hiram. He also made an agreement with sin when he married Pharaoh's daughter, since Pharaoh is from Egypt, and Egypt is a type for sin:
1Ki 7:8 And his house where he dwelt had another court within the porch, which was of the like work. Solomon made also an house for Pharaoh's daughter, whom he had taken to wife, like unto this porch.