The partner of a gay policeman gunned down by a jihadist on Paris's Champs-Elysees avenue in April has married him posthumously.

Former president Francois Hollande and Paris Mayor Anne Hidalgo attended the wedding on Tuesday of the late Xavier Jugele and Etienne Cardiles.

The ceremony took place in the mayor's office of the XIVth arrondissement in front of a small group of officials, the daily Le Parisien reported Wednesday.

Prior to Jugele's death, he and Cardiles were already in a civil partnership.

Jugele, 37, was shot dead on April 20 while on duty on the famous Parisian avenue, three days before the first round of France's presidential election.

French law states that posthumous marriages are allowed if there are 'significant grounds' for the marriage, and terror attacks fall under that category, according to the government's website.

Etienne Cardiles (left) wed the late Xavier Jugele (right) in a ceremony on Tuesday attended by former president Francois Hollande and Paris Mayor Anne Hidalgo. Jugele, 37, was shot dead on April 20 while on duty on the famous Parisian avenue

Jugele was gunned down by a jihadist on Paris's Champs-Elysees avenue in April, days before the first round of France's presidential election

The living spouse must show that the deceased had 'unequivocal' desire to get married.

If the qualifications are met, the president of France can approve of the marriage by decree. Prior to his death, Jugele had campaigned for gay rights within the police force.

At a moving remembrance ceremony led by then president Hollande on April 25, Cardiles said the killer would 'not have my hatred', echoing the words of the husband of a victim of the November 2015 attacks in the French capital.

'I have no hatred, Xavier, because it is not like you and does not fit with what made your heart beat nor what made you a guardian of the peace,' he said.

At a moving remembrance ceremony (pictured above) led by then president Hollande on April 25, Cardiles said the killer would 'not have my hatred', echoing the words of the husband of a victim of the November 2015 attacks in the French capital

Former President Francois Hollande attended the wedding ceremony on Tuesday, as well as the remembrance ceremony in April (pictured above)

ISIS claimed Jugele's killing by 39-year-old Karim Cheurfi, who was shot dead by police in a gun battle. Two other officers were injured in the attack.

Addressing hundreds of mourners at a ceremony at Paris police headquarters, Jugele's partner Cardiles spoke of his 'extreme pain' at the death of the officer, who had campaigned for gay rights within the police force.

'This pain makes me feel closer to your comrades who suffer in silence like you and me,' he said in a trembling voice, describing Jugele as a cinema and theatre buff who lived 'a life of joy and huge smiles'.

Jugele was the fifth policeman slain by jihadists in attacks that have claimed more than 230 lives across France since January 2015.

Addressing hundreds of mourners at a ceremony at Paris police headquarters in April, Jugele's partner Cardiles spoke of his 'extreme pain' at the death of the officer, who had campaigned for gay rights within the police force

President Emmanuel Macron (right) also attended the remembrance ceremony in April, where he spoke to Cardiles (pictured above)

Hollande posthumously made him a knight of the Legion d'Honneur, one of France's highest honours.

Shortly after Jugele's death it emerged that he had been among the first responders at the Bataclan theatre in Paris on November 13, 2015, where IS gunmen massacred 90 concertgoers.

He returned to the venue a year later when it reopened for a concert by British star Sting, telling a BBC interviewer he wanted 'to celebrate life and say 'no' to terrorism'.

Before leaving office, Hollande, had appealed to the country's next leader to show 'constancy, perseverance and coherence in the fight (against extremists), rather than escalation and divisiveness'.