it was origanly made in the 70s when people started to come out more and when the lgbt rights movement picked up it was used during many parades and when the mayor and his boyfriend and assistant of san fransico were murder cause they were gay it met high demand due to a guy named baker using the flag in a pride parade and because many were in demand a company started making them and it became more widespread and thus we have the rainbow flag