A mesoporous silica nanoparticle (MSN) based fluorescent sensor for dopamine was constructed with probes inside particle pores and β-cyclodextrin (β-CD) molecules on the particle surface as the selective barricade. The synergistic action of both the hydrophilic rim and hydrophobic cavity of β-CD ensures that the sensor can distinguish dopamine from other biological competitors.