Hardline sheikh Omar Abdel Rahman was convicted of inspiring World Trade Center bombing in 1993
Thousands of mourners gathered on Wednesday in Egypt for the funeral of Omar Abdel Rahman, the blind sheikh linked to the 1993 World Trade Center bombing who died in a US jail.
The Egyptian-born sheikh died of natural causes on Saturday at the age of 78 at a federal medical centre in North Carolina, where he was serving a life sentence on several terrorism-related charges.
More than 2,000 people attended the funeral in his hometown of El-Gamaleya in the province of Dakhalia northeast of Cairo, an AFP photographer said.
The mosque was bursting with mourners, and some were forced to pray outside.
The sheikh was seen as a militant spiritual leader even after his conviction in 1995 for conspiring to bomb New York landmarks, including the UN headquarters, and to assassinate former Egyptian president Hosni Mubarak.
Abdel Rahman led the militant Gamaa Islamiya group in the North African country before emigrating to the United States.
Despite his militant connections, Abdel Rahman traveled to the US in 1990 and preached impassioned sermons to mosques in New Jersey and Brooklyn, after obtaining a tourist visa from a US embassy in Sudan.
From the US, he continued to urge the violent overthrow of the Egyptian government in cassette tapes sent to his homeland.
He preached a hardline brand of Islam and was seen as having inspired the 1993 bombing of New York's World Trade Center, which killed six people and wounded about 1,000.
The theologian - along with nine associates - was convicted of waging "a war of urban terrorism" after an almost year-long trial in a US district court in New York.
"We never met you but we're your students," read one banner at the funeral held up by women wearing the niqab face veil.
Aida Abdel Azim, a woman in her 50s from El-Gamaleya, said she wished the sheikh had returned to Egypt alive.
"I attended his lectures. He never encouraged violence or terrorism," she added.
His death came after a long battle with diabetes and coronary artery disease, said the US Bureau of Prisons.
In 2012, Egypt's then Islamist president Mohamed Morsi called for Abdel Rahman's transfer to his homeland for "humanitarian reasons", asking for a "prisoner exchange" with the United States.
President Abdel Fattah al-Sisi's government has led a brutal crackdown on Morsi's supporters since he ousted him from power as army chief in 2013.
Morsi's Muslim Brotherhood bid farewell to Abdel Rahman on Facebook, while Mussa Abu Marzuk, a top official in the Palestinian Hamas movement, mourned the sheikh on Twitter.
Al-Qaeda's branches in the Arabian Peninsula and North Africa have called for "the most violent of revenges" against "those who oppressed and jailed him" in a joint statement.