The man was arrested Sunday in the hospital where the infant girl was being treated for major head injuries.
The suspect made an appearance in a Longueuil courtroom today.
He was barred from communicating with his 24-year-old girlfriend, the mother of the baby and remanded into custody until his next court appearance Thursday.
Police were called to Nancy Street in Brossard on Montreal's South Shore around 4 a.m. on Sunday to investigate a report that a child sustained serious head injuries.
Both the mother and the accused went to the hospital with the girl.
Soon after, police charged the mother's boyfriend.
The Crown prosecutor said the girl is in critical but stable condition.