A comparative study of Diels-Alder reaction between cyclopentadiene and dimethyl maleate in catalytic system is reported. The catalytic system was formed from ionic liquid which was made of N-hexylpyridinium bis(trifluoromethylsulfonyl)imide and magnesium trifluoromethanesulfonate. The yields, TONs, TOFs and