great mosque of tlemcen was first built in tlemcen, algeria in 1082. it is one of the best-preserved examples of almoravid architecture. it was built under sultan yusuf ibn tashfin but substantially reconstructed and enlarged by his son ali ibn yusuf. an inscription dates this reconstruction to 1136. sultan yaghmoracen (1236-1283), the founder of the abdalwadid dynasty of tlemcen added a section with a minaret and a dome in the 13th century. next, to the mosque, there used to be an islamic court (makhama) and an islamic university of considerable fame.