Agrobacterium-mediated transformation has been widely used in plants. However, the mechanism in plant cells' response to Agrobacterium infection was very complex. The mechanism of the determinants in host cell remains obscure, especially in barley, which is recalcitrant for Agrobacterium-mediated transformation. In the present study, microspore-derived embryogenic calli (MDEC) from barley elite cultivar were employed as unique subjects to characterize the mechanisms during the Agrobacterium infection process. Hua 30 MDEC can be successfully infected by Agrobacterium. RNA-sequencing at different infection points (0, 2, 6, 12, 24 hpi) was performed. The average expressional intensity of the whole genomics increased from 0 to 2 hpi, and then decreased subsequently. More upregulated than downregulated differentially expressed genes (DEGs) were counted at the same time. GO enrichment analysis showed that protein modification was significantly overrepresented in upregulated DEGs. Chromosome-related biological processes, gene expression and cellular metabolic processes were significantly overrepresented in downregulated DEGs. KEGG analysis showed that plant defense responses, phenylpropanoid biosynthesis and biosynthesis of amino acids were significantly enriched across the infection time course. Nine DEGs related to defense responses were identified. All DEGs were upregulated from 2 to 24 hpi. We speculate that these genes are possibly related to Agrobacterium infection. These findings will provide deep insights into the molecular events occurring during the process of Agrobacterium-mediated transformation.