Astrocytes are key components of the central nervous system (CNS) and release factors to support neural stem cell proliferation, differentiation, and migration. Adenosine 5'-triphosphate (ATP) is one of the key factors released upon activation of astrocytes that regulates the neural stem cell's function. However, it is not clear whether ATP derived from the depolarized astrocytes plays a vital role in promoting the neuronal differentiation of mesenchymal stem cells (MSCs) in vitro and in vivo. Herein, for the first time, we co-cultured MSCs with light-stimulated-channelrhodopsin-2 (ChR2)-astrocytes, and observed that the neuronal differentiation of MSCs was enhanced by expressing more neuronal markers, Tuj1 and NeuN. The ChR2-astrocyte-conditioned medium also stimulated MSCs differentiating into neuronal lineage cells by expressing more Tuj1 and Pax6, which was blocked by the P2X receptor antagonist, TNP-ATP. Then we found that light-depolarization of astrocytes significantly increased ATP accumulation in their bathing medium without impairing the cell membrane. We further found that ATP up-regulated the Tuj1, Pax6, FZD8 and β-catenin mRNA levels of MSCs, which could be reversed by application of TNP-ATP. Together these in vitro data provided convergent evidence that ATP from light-depolarized-astrocytes activated the wnt/β-catenin signaling of MSCs through binding to the P2X receptors, and promoted the neuronal differentiation of MSCs. Finally but importantly, our study also demonstrated in stroke rats that light-controlled astrocytes stimulated endogenous ATP release into the ischemic area to influence the transplanted MSCs, resulting in promoting the MSCs towards neuronal differentiation and improvements of neurological deficit.