Rockburst is one of the significant challenges for underground excavation stability. The post-peak behaviour of rock controls the way it fails, and the released energy is potentially involved in the rockburst. However, understanding of both microscopic and macroscopic behaviours of brittle rock in the post-peak stage is limited due to the lack of proper loading methods and quantitative microscopic analysis methods. This study proposes a circumferential strain-controlled loading algorithm in UDEC to control the failure process, which has been verified against previous literature. By employing the improved geometry generation method, the microcrack evolution is quantitatively assessed. Energy analysis reveals that up to 80% of the input energy is stored in the granite prior to complete failure, which could be released if the rock fails at this moment. Conversely, after the complete failure, intragranular cracks account for the majority of energy dissipation, indicating its importance in post-peak stability. A small portion of the peak stored strain energy needs to be extracted to achieve a controlled failure process. Furthermore, it is found that the significant increases in the formation of intergranular shear and low-angled microcracks potentially feature the complete failure of the specimen. The proposed model offers a complementary method to systematically investigate the post-peak behaviour of rock, including the evolution of microcracks and energy.