A diver survived after a great white shark broke open the metal rails of his diving cage and swam inside while the diver was within.

The Shanghai man was shark diving off the coast of Guadalupe Island in Mexico, when a shark breached the side of the cage, according to the YouTube caption in the video captured by a California man.

Although the shark thrust through the bars of the diving cage, the diver, Ming Chan, was able to emerge uninjured, according to ABC News. The great white shark forcefully rocked the cage around for what appears to be about 20 seconds, until the instructor lifted open the cage’s top, and it leapt out of the opening.

“It happened so fast. The other divers just kept telling me how lucky I am,” Chan told ABC News. Read more information about the rising shark population here.

[ABC News]

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Write to Ashley Hoffman at Ashley.Hoffman@time.com.