Confinement of Fe-Al-PMOF catalytic sites favours the formation of pyrazoline from ethyl diazoacetate with an unusual sharp increase of selectivity upon recycling.