Rajic was in the Spanish prison for the last four years after he was transferred there from the detention centre of the International Criminal tribunal for the former Yugoslavia (ICTY) in The Hague.
In 2005, Rajic pleaded guilty to the atrocities in Stupni Do, central Bosnia, and offered his condolences to the victims' families. During his sentencing hearing in April 2006, Rajic stated: "I should like to apologise to the families of the people who have suffered, expressing my full sympathies and my regrets for the loss of their nearest and dearest. All those victims deserve the truth and justice, and my cooperation with the Prosecution is a contribution to the establishment of the truth and the acceptance of my responsibility."
Rajic was the commander of troops that killed 31 Bosniak civilians, including elderly, women and children.
Rajic was arrested in Croatia, where he lived under the name of Viktor Andric, in April 2003 and extradited to the ICTY in June that year.