The rainbow flag was flown for the first time at the San Francisco Gay Freedom Day Parade.

Before the rainbow flag, gay pride was represented with a pink triangle. However, the triangle was used during the Holocaust to identify homosexuals and people wanted a more positive symbol.

Source