Understanding how gay rights movements evolved helps explain the legal and cultural environment that exists today.