Scotland will be the first country in the world to ensure its education system recognises the issues faced by the LGBTI community, Education Secretary John Swinney announced.
Equalities campaigners hailed the move as a "monumental victory", claiming the "destructive legacy" of Section 28 - which banned the promotion of homosexuality - had been ended.
Research by the Time for Inclusive education (Tie) campaign group found 90% of LGBT people experienced homophobia, biphobia or transphobia at school.
Co-founder Jordan Daly said: "After three years of campaigning, we are delighted that LGBTI inclusive education will now become a reality in all of Scotland's state schools."
In other news Tory MSP Annie Wells was banned from the chamber and committees for a week.