A suspected Isis military leader is on trial in a Hungarian court, accused of terrorism and crimes against humanity.

The 27-year-old Syrian, identified as F Hassan, was charged in September after an international investigation led to his capture in Budapest’s main airport at the end of last year.

Mr Hassan deserted from the Syrian army in 2011, then joined Isis sometime before 2014, prosecutor Andras Urbanyi told the court. He became commander of an Isis unit and actively recruited members, Mr Urbanyi said.

He allegedly participated in the murder of dozens of people near the city of Homs in 2015.

“In May 2015 Hassan’s unit was ordered to capture an area rich in artefacts near Homs,” Mr Urbanyi said. “Hassan was to draw up a death list, naming those to be executed out of revenge or to intimidate locals. The list was approved by Isis leaders.”

His brigade went door to door, pulling and murdering individuals on the list either with gunshots or knifing, Mr Urbanyi said. Others were forced to gather at the town’s main square.

Timeline of the Isis caliphate Show all 19 1 /19 Timeline of the Isis caliphate Timeline of the Isis caliphate ISIS began as a group by the merging of extremist organisations ISI and al-Nusra in 2013. Following clashes, Syrian rebels captured the ISIS headquarters in Aleppo in January 2014 (pictured) AFP/Getty Timeline of the Isis caliphate Abu Bakr Al-Baghdadi declared the creation of a caliphate in Mosul on 27 June 2014 Timeline of the Isis caliphate Isis conquered the Kurdish towns of Sinjar and Zumar in August 2014, forcing thousands of civilians to flee their homes. Pictured are a group of Yazidi Kurds who have fled Rex Timeline of the Isis caliphate On September 2 2014 Isis released a video depicting the beheading of US journalist Steven Sotloff. On September 13 they released another video showing the execution of British aid worker David Haines Timeline of the Isis caliphate The US launched its first airstrikes against Isis in Syria on 23 September 2014. Here Lt Gen William C Mayville Jnr speaks about the bombing campaign in the wake of the first strikes Getty Timeline of the Isis caliphate Isis militants sit atop a hill planted with their flag in the Syrian town of Kobani on 6 October 2014. They had been advancing on Kobani since mid-September and by now was in control of the city’s entrance and exit points AFP/Getty Timeline of the Isis caliphate Residents of the border village of Alizar keep guard day and night as they wait in fear of mortar fire from Isis who have occupied the nearby city of Kobani Getty Timeline of the Isis caliphate Smoke rises following a US airstrike on Kobani, 28 October 2014 AFP/Getty Timeline of the Isis caliphate YPG fighters raise a flag as they reclaim Kobani on 26 January 2015 VOA Timeline of the Isis caliphate Isis seized the ancient Syrian city of Palmyra on 20 May 2015. This image show the city from above days after its capture by Isis Getty Timeline of the Isis caliphate Kurdish forces are stationed on a hill above the town of Sinjar as smoke rises following US airstrikes on 12 November 2015 AFP/Getty Timeline of the Isis caliphate Kurdish forces enter Sinjar after seizing it from Isis control on 13 November 2015 AFP/Getty Timeline of the Isis caliphate Iraqi government forces make the victory sign as they retake the city of Fallujah from ISIS on 26 June 2016 Getty Timeline of the Isis caliphate Iraqi forces battle with Isis for the city of Mosul on 30 June 2017 AFP/Getty Timeline of the Isis caliphate Members of the Iraqi federal police raise flags in Mosul on 8 July 2017. On the following day, Iraqi prime minister Haider Al Abadi declares victory over Isis in Mosul Getty Timeline of the Isis caliphate Members of Syrian Democratic Forces celebrate in Al-Naim square after taking back the city of Raqqa from Isis. US-backed Syrian forces declare victory over Isis in Raqqa on 20 October 2017 after a four-month long campaign Getty Timeline of the Isis caliphate Female fighters of the Syrian Democratic Forces celebrate in Al-Naim Square after taking back the city of Raqqa from Isis. US-backed Syrian forces declare victory over Isis in Raqqa on 20 October 2017 after a four-month long campaign AFP/Getty Timeline of the Isis caliphate Trucks full of women and children arrive from the last Isis-held areas in Deir ez-Zor, Syria in January 2019 They were among the last civilians to be living in the ISIS caliphate, by this time reduced to just two small villages in Syria’s Deir ez-Zor Richard Hall/The Independent Timeline of the Isis caliphate Zikia Ibrahim, 28, with her two-year-old son and 8-month-old daughter, after fleeing the Isis caliphate, on Saturday 26 January 2019 Richard Hall/The Independent

“At the square they were forced to witness an execution. The local imam was beheaded. Hassan and an accomplice severed the imam’s head with long, seesawing motions, then held up his head to the crowd.”

Six women and one child were among at least 25 people killed by the militants.

Mr Hassan, cuffed on his hands and feet and accompanied by a dozen heavily armed counter-terrorism agents, gave a detailed testimony of his upbringing, family and his subsequent migration to Europe.

He denied involvement in the crimes, claiming not to have been in Syria when they took place.

“Your honour, I committed nothing, I just want my family,” he told judge Gergely Miko. “I was not even in Syria in 2015. I was in Turkey, never to return to Syria.”

Mr Hassan's father told the court that his son had been jailed in Syria for refusing to join Isis.

His attorney, Janos Kelen, echoed Mr Hassan's claim that his client was not in Syria at the time of the incidents, asserting that Mr Hassan was illiterate and incapable of leading units and organise killings.

Mr Kelen disputed that a video of the execution, shown in court, featured Mr Hassan. Witnesses did not personally see the atrocities, he said, while a lie detector test was conducted illegally, without a defence attorney.

The lawyer said Mr Hassan had tried to kill himself while in prison. Mr Hassan claimed he had been mistreated by police and feared being poisoned.

Mr Hassan had obtained refugee status in Greece, before being apprehended in December at Budapest's Ferenc Liszt International Airport when he and a female companion were found to have forged personal IDs.