The San Marino Grand Prix was a Formula One championship race . It was held at the Autodromo Enzo e Dino Ferrari in the town of Imola . The San Marino Grand Prix was a Formula One championship race which was run at the Autodromo Enzo e Dino Ferrari in the town of Imola , near the Apennine mountains in Italy , between 1981 and 2006 .