Ochratoxin A (OTA), a group of highly toxic fungal secondary metabolites, is one of the most common mycotoxins that contaminate a wide range of agricultural products. Herein, we designed a label-free and selective surface plasmon resonance (SPR) based sensor for detection of OTA contamination in dried fig. The molecularly imprinted polymer film (MIP) was fabricated onto the SPR sensor chip by using light-initiated polymerization of N-methacryloyl-(L)-phenylalanine and 2-Hydroxyethyl methacrylate in the presence of OTA as a template. SPR chips were characterized by using contact angle, atomic force microscopy, and ellipsometry. OTA imprinted sensor was displayed a broad linear range, between 0.1 ng/mL and 20 ng/mL. The limit of detection was calculated as 0.028 ng/mL. The selectivity studies of the OTA imprinted SPR sensor was performed in the presence of aflatoxin M1, aflatoxin B1, and citrinin. The imprinting factor was found to be 2.85. The adsorption behavior of the OTA imprinted sensor was found as suitable for the Langmuir model. Results displayed that the OTA imprinted SPR sensor was successfully applied to determine OTA in dried fig samples.