SAN FRANCISCO (CBS SF) – A 21-year-old San Francisco man suffered a traumatic brain injury but is expected to survive after being hit by a San Francisco Municipal Railway light-rail vehicle Wednesday night in the city’s Dogpatch neighborhood.

The collision occurred at 8:19 p.m. at Third and Mariposa streets.

READ MORE: Santa Rosa Neighbors Blame City After Creek Overflows, Flooding Homes, Forcing Evacuations

The victim got off one train and walked behind it to cross the street when an oncoming train hit him, Officer Albie Esparza said.

READ MORE: Los Gatos Mayor Issues Warning To Residents To Stop Harassment At Council Meetings

The man was taken to a hospital to be treated for his injuries, which are not considered life-threatening.

MORE NEWS: Lowell High School Alumni File Lawsuit To Reinstate Merit-Based Admissions

© Copyright 2016 by CBS San Francisco and Bay City News Service. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.