- The day after his 18th birthday, Salvador Ramos, a troubled teenager from small-town Texas, bought his first assault rifle.
- A week later, he walked into a local elementary school, where he shot and killed 19 young children and two of their teachers.
- Ramos - a dropout with no criminal history - messaged on Facebook on Tuesday morning that he planned to attack his grandmother.
The day after his 18th birthday, Salvador Ramos, a troubled teenager from small-town Texas, bought his first assault rifle. A week later, he walked into a local elementary school, where he shot and killed 19 young children and two of their teachers.
Authorities were still trying to piece together what drove Ramos to commit America's worst school massacre in a decade, but here is what is known so far about the shooting:
Described as a long-bullied youth with a history of self-harm, Ramos turned 18 on 16 May and bought an assault rifle the very next day.
He purchased 375 rounds of ammunition on 18 May, and then a second rifle two days after that.
Ramos - a dropout with no criminal history - messaged on Facebook on Tuesday morning that he planned to attack his grandmother, whom he lived with, Texas Governor Greg Abbott said.
Ramos shot his 66-year-old relative in the face, but she was able to call the police and was airlifted in critical condition to a hospital in nearby San Antonio.
The shooter then messaged again on social media to say he had followed through on his plan to attack his grandmother, and that an elementary school was his next target.
He drove a little over 3.2 kilometers crashing his car near Robb Elementary School.
He took an assault rifle with him and headed for the school, where more than 500 students in grades two to four - aged around seven to 10 years old - had just three days of class left before summer vacation.
Ramos, clad in black and wearing a tactical vest, was confronted by a school resource officer, but was able to enter the school through a back door.
He then made his way to two adjoining classrooms.
"That's where the carnage began," said Steve McCraw, director of the Texas Department of Public Safety.
The identities of the victims have been gradually revealed as shattered families share their pain online: Xavier Lopez, a 10-year-old boy who loved to dance; Ellie Garcia, "the happiest ever" in her father's words and Amerie Jo Garza, a girl with a brilliant smile who had just celebrated her 10th birthday.
As a crowd grew nearby, police arrived on the scene in response to a report of a crashed vehicle.
Hearing shots coming from the school, they ran inside and themselves came under gunfire.
Some police started to break windows and evacuate children and teachers from the premises.
Law enforcement on site helped pin the shooter in place until a tactical team that included US Border Patrol agents was assembled.
Department of Homeland Security spokesperson Marsha Espinosa said:
Law enforcement officers "put themselves between the shooter and children on the scene to draw the shooter's attention away from potential victims," said Espinosa.
It was more than 30 minutes after Ramos entered the school that he was finally shot and killed by one of the Border Patrol agents.
Ramos had been living with his grandmother for two months, McCraw said. According to Governor Abbott, no psychological problems were known to local health departments.
A cousin, Mia, told The Washington Post Ramos "wasn't very much of a social person" after being bullied for a stutter. He loved playing video games, according to another friend.
In social media messages to a young German girl he had recently met online, Ramos explained that he had just shot his grandmother and was continuing onward to "shoot up" the school.
The 15-year-old girl, who lives in Frankfurt, said he was angry with his grandmother that morning because she was "on the phone with AT&T," a US telecommunications provider, on a call concerning his phone.
According to the girl, Ramos spent a lot of time alone at home and "he never had plans with his friends."
Never miss a story. Choose from our range of newsletters to get the news you want delivered straight to your inbox.