The mechanical properties of cells could serve as an indicator for disease progression and early cancer diagnosis. This study utilized atomic force microscopy (AFM) to measure the viscoelastic properties of ovarian cancer cells and then examined the association with the invasion of ovarian cancer at the level of living single cells. Elasticity and viscosity of the ovarian cancer cells OVCAR-3 and HO-8910 are significantly lower than those of the human ovarian surface epithelial cell (HOSEpiC) control. Further examination found a dramatic increase of migration/invasion and an obvious decease of microfilament density in OVCAR-3 and HO-8910 cells. Also, there was a significant relationship between viscoelastic and biological properties among these cells. In addition, the elasticity was significantly increased in OVCAR-3 and HO-8910 cells after the treatment with the anticancer compound echinomycin (Ech), while no obvious change was found in HOSEpiC cells after Ech treatment. Interestingly, Ech seemed to have no effect on the viscosity of the cells. Ech significantly inhibited the migration/invasion and significantly increased the microfilament density in OVCAR-3 and HO-8910 cells, which was significantly related with the elasticity of the cells. An increase of elasticity and a decrease of invasion were found in OVCAR-3 and HO-8910 cells after Ech treatment. Together, this study clearly demonstrated the association of viscoelastic properties with the invasion of ovarian cancer cells and shed a light on the biomechanical changes for early diagnosis of tumor transformation and progression at single-cell level.