Motor imagery (MI) refers to the mental rehearsal of movement in the absence of overt motor action, which can activate or inhibit cortical excitability. EEG mu/beta oscillations recorded over the human motor cortex have been shown to be consistently suppressed during both the imagination and performance of movements, although the specific effect on brain function remains to be confirmed. In this study, Granger causality (GC) was used to construct the brain functional network of subjects during motor imagery and resting state based on EEG in order to explore the effects of motor imagery on brain function. Parameters of the brain functional network were compared and analyzed, including degree, clustering coefficient, characteristic path length and global efficiency of EEG mu/beta rhythm in different states. The results showed that the clustering coefficient and efficiency of EEG mu/beta rhythm decreased significantly during motor imagery (p < 0.05), while degree distribution and characteristic path length increased significantly (p < 0.05), mainly concentrated in the frontal lobe and sensorimotor area. For the resting state after motor imagery, the changes of brain functional characteristics were roughly similar to those of the task state. Therefore, it is concluded that motor imagery plays an important role in activation of cortical excitability.