UBC was not created in a single sweeping act. It came to be in piecemeal fashion. Vancouver High School (shown below in its first incarnation at corner of Dunsmuir and Cambie, with Central School in the background) was where UBC had its start. B.C. passed legislation which allowed the province’s high schools to affiliate with Canadian universities. Accordingly, VHS in 1899 incorporated as Vancouver College of McGill University. Further legislation in 1906 created McGill University College of B.C. , which operated until 1915. Affiliations with Vancouver College were severed upon creation of Mcgill University College.
Finally, in 1908, the province enacted legislation creating a university which became known as the University of British Columbia or UBC.
The story of UBC’s creation and physical establishment in Point Grey was just started, however. For more details see here.