One of the important features of the restorative materials is the ability to seal and prevent the microleakage. Glass ionomer cement (GIC) still exhibits some microleakage despite establishing a chemical bond to the tooth. The aim of this study was to evaluate the effect of nanographene oxide (nGO) on the microleakage of conventional (CGIC) and resin-modified glass ionomer cement (RMGIC). Thirty intact extracted molars were used. Class V cavities were prepared on their buccal and lingual surfaces. The samples randomly divided into two main groups of CGIC and RMGIC; each of them was randomly subdivided into three subgroups, including the group without nGO (control), the group with 1% nGO, and the group with 2% nGO. After restoring the cavities, they were subjected to thermocycling (1,000 cycles at 5/55°C). Two percent basic fuchsin solution was used to perform the microleakage test, and then the sectioned samples were examined by a stereomicroscope 40x. Kruskal-Wallis test, Dunn's test, and Mann-Whitney U test were used to analyze the data (P < 0.05). Group CGIC + 1% nGO at the gingival margin and group RMGIC + 1% nGO at both gingival and occlusal margins had significantly less microleakage than their control groups (P=0.008, P=0.002, P=0.023, respectively). Also, in these two groups, there were no significant differences between the microleakage of the occlusal and gingival margins (P=0.132, P=0.511, respectively), while in all other groups, the gingival microleakage was significantly higher than that of occlusal microleakage. The addition of 1% nGO significantly reduced the gingival microleakage of CGIC and the occlusal and the gingival microleakage of RMGIC, while the addition of 2% nGO did not cause a significant reduction in microleakage.