A giant crocodile with teeth like a T-Rex was a top predator during the Jurassic period, researchers found in a recent study.

Called Razanandrongobe sakalavae and nicknamed “Razana,” the animal roamed Madagascar about 170 million years ago, according to the study published in PeerJ. Researchers first described the crocodile ancestor based on isolated teeth and a fragmented bone documented in a 2006 study. At the time, scientists could not determine whether Razana was a dinosaur or an unknown crocodile ancestor.

New cranial fossils enabled a team of Italian paleontologists to identify Razana as a crocodile relative, making her the oldest representative of a group of animals similar to crocodiles called Notosuchians.

Unlike modern crocodiles, Razana had a large jaw and serrated teeth similar to that of a T-Rex, suggesting that the animal was a top hunter and scavenger in the Middle Jurassic.

Get our Space Newsletter. Sign up to receive the week's news in space. 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 Mahita Gajanan at mahita.gajanan@time.com.