At what point in history did homosexuality begin gaining a negative stigma?

by DeBoogieMan

I believe it is generally true that ancient cultures were open and accepting of the idea of homosexuality. However it seems that somewhere in history, mostly the whole world took up a negative view on it. Was this through the spread of any specific ruling bodies, or through religions?

Nomsheep

This thread asked a similar question and the answer links to many other answers that may be of use.

FAQ

This answer and this one by /u/cleopatra_philopater regarding Greeks.

This answer about the Romans by /u/thebatteryhuman and /u/MarsTheGodOfWar