to understand sth, or realize what you should have done, only after sth has happened
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition