Why did Alexander the Great build temples in conquered lands?

He believed that the gods had asked him to.
He forced people to pray to his gods.
He wanted to show appreciation to the gods.
He feared he would be destroyed by the gods.