We report ultrasensitive and highly selective detection of testosterone based on microring resonance sensor using molecularly imprinted polymers (MIP). A silicon-on-insulator (SOI) micoring resonator was modified by MIP films (MIPs) on a surface. The MIPs was synthesized by thermopolymerization using methacrylic acid as functional monomer and ethylene glycol dimethacrylate as crosslinking agent. The concentration of detected testosterone varies from 0.05 ng/mL to 10 ng/mL. The detection limit reaches 48.7 pg/mL. Ultrahigh sensitivity, good specificity and reproducibility have been demonstrated, indicating the great potential of making a cost effective and easy to operate lab-on-Chip and down scaling micro-fluidics devices in biosensing.