To have one's eyes opened; to suddenly realise the truth after being deceived.
Literally: 'for the eyes to open'