One of the earliest references in the university archives to St Andrews’ students wearing gowns comes from the Statutes of St Leonard’s College in 1544. . https://www.heraldscotland.com/news/17244455.scarlet-gowns-of-st-andrews-university-worn-to-discourage-student-vice/