He grew up in Puerto Rico, played percussion in his high school band, spent nearly a decade in the National Guard, served as a peacekeeper in Egypt's Sinai Peninsula, worked as a police officer and then joined the U.S. Army.
That was Ivan Lopez's seemingly unremarkable route into the military. But what happened from there — and why the 34-year-old soldier turned against his comrades with such deadly fury — were a mystery Thursday.
A day after Lopez went on a shooting rampage at the Army's Fort Hood in Texas, killing three people and wounding 16 before committing suicide, some of those who knew him were baffled by the explosion of violence.
"He had a lot of friends. I never saw him fighting. He never seemed like a boy who had emotional problems," said Guayanilla Mayor Edgardo Arlequin Velez, who was also the leader of the school band that Lopez played in in this small, working-class town.
Lopez was sent to Iraq as a truck driver in 2011 during the final months of the war there. He came home complaining of a traumatic brain injury, according to military officials. But they said he did not see combat and was not wounded.
He sought help for depression and anxiety and was being evaluated for post-traumatic stress disorder, military officials said. But Army Secretary John McHugh said Thursday that a psychiatrist last month found no violent or suicidal tendencies. The soldier was prescribed Ambien for a sleeping problem.
He had no apparent links to extremists, McHugh said.
Glidden Lopez Torres, who is not related to the gunman but identified himself as a family friend speaking on behalf of the soldier's family in Puerto Rico, said Lopez's mother died of a heart attack in November.
Lopez was close to her and was apparently upset that he was granted only a short leave — 24 hours, later extended to two days — to go to her funeral, which was delayed for nearly a week so he could make it, the family spokesman said.
The family was not aware that Lopez was receiving any treatment for mental problems, the spokesman said.
He grew up in Guayanilla, a town of fewer than 10,000 people, where small, well-kept houses are painted bright colours. The house he grew up in was empty Thursday. It is a one-story, concrete home painted white with green trim.
There are few jobs in the town, and many young people have joined the military in recent years. A young woman whose parents live in the town, 33-year-old Army Spec. Aleina Rodriguez-Gonzalez, was killed in Iraq in 2005.
The mayor described Lopez as somewhat introverted and passionate about music. His parents attended school functions, and they seemed close.
Puerto Rico police officials and Torres, the family spokesman, said Lopez had worked as a state police officer from 2000 until he received leave to serve in the military.
Torres said Lopez's relatives are devastated, trying to comprehend the shooting.
"He was a very laid-back person. I would even say a bit shy," Torres said. "That's why we are so surprised."
In El Paso, Texas, where the Lopez family lived for about two years before heading to Fort Hood, Noah Georges lived across the hall. They were a quiet family, with a small daughter, he recalled.
Although Georges never heard the couple argue, "you could see there was tension between them."
"I never saw them leave the house together. It seemed obvious they didn't talk to one another much," Georges said.
In Killeen, Texas, where the family moved after Lopez was transferred to Fort Hood, neighbours in a three-story, blue and grey apartment building described him as friendly.
Shaneice Banks, a 21-year-old business management student who lives downstairs from the Lopezes, said her husband, who also works at Fort Hood, helped the family move in just three weeks ago. Hours before the shooting, Banks said, she ran into Lopez when he came home for lunch.
"They get an hour to come home," Banks said. "He was going to his car and I was like, 'Hey, how's your day going?' And he seemed perfectly fine. He was like, 'Day's going pretty good. I'll see you whenever I come back home.'"
After word came of a shooting at the base, Banks saw Lopez's wife frantically calling her husband over and over, trying to reach him via cellphone from the apartment courtyard.
"She was bawling because they have a 2-year-old and she was just holding the baby," Banks said. "My heart just went out to her. I was trying to get her information when I could, but she doesn't speak a lot of English. I told her, 'The last time you heard from him was like 3 o'clock. They could be shutting off the cellphone towers.' But of course that wasn't what happened."