HAMPTON — Just 27 hours before he was set to walk down the aisle and accept his Portsmouth High School diploma, 17-year-old Remi Gross-Santos walked out of the Hampton police station.

Gross-Santos was charged Thursday morning with aggravated driving while intoxicated after police say he drove into two women on Ocean Boulevard in Hampton at 7:15 a.m.

Police said Gross-Santos was traveling north in a 1992 Volvo station wagon when he crossed over into the southbound lane and hit 69-year-old Karen Weinhold and 60-year-old Lisa Beaudry, both of Hampton. The women are neighbors, according to phone records.

“The victims in this case were just going out for a walk and walking safely out of the way. They were not in the travel portion of the road,” Hampton Deputy Chief Rich Sawyer said. “They were thrown some distance.”

Police said Weinhold is in serious condition at Beth Israel Hospital; Beaudry is in fair condition at Massachusetts General Hospital.

Sawyer said Gross-Santos had a passenger in his car, but police would not identify the person.

“Statements from him were that he was on his way back to Portsmouth, that he was due to graduate from Portsmouth High School tomorrow night, and that he was on his way to attend a rehearsal,” Sawyer said of Gross-Santos.