It happened at the University of Lethbridge on Sunday morning.
Lethbridge police say a male student who lived in student residence and his male friend were in a dorm room socializing, then the friend left the room
It's alleged the friend entered a bedroom where a 19-year-old woman was sleeping and sexually assaulted her, then left the student residence building.
Police say the two didn't know each other.
Scott Mervin Pylypow, who is 19, is set to appear in court on Oct. 23.
Pylypow has been ordered by the court to not be within 100 metres of University of Lethbridge property and have no contact with the alleged victim.