A terrifying cross between Tyrannosaurus rex, a crocodile and a whale was the largest predator ever to walk the Earth - or swim in its rivers.

Spinosaurus is the first dinosaur known to have been adapted to an aquatic lifestyle.

Weighing 20 tonnes and measuring almost 50 feet, it was nine feet longer than the largest T. rex specimen known.

It also had jaws filled with vicious slanted teeth and a snout like that of a massive crocodile, while its short muscular hind legs were equipped for paddling and resembled those seen in early limbed whales.

The creature also had powerful forelimbs with curved, blade-like claws ideal for hooking into or slicing prey.

While other dinosaurs such as T. rex hunted on land, Spinosaurus pursued sharks and other large fish in the deep river system it inhabited.

Plesiosaurs, a family of giant marine reptiles, lived alongside Spinosaurus 97 million years ago, but were not dinosaurs. Until now, all dinosaurs were thought to have been confined to the land.

Lead researcher Dr Nizar Ibrahim, from the University of Chicago, said: "Working on this animal was like studying an alien from outer space; it's unlike any other dinosaur I have ever seen."

The scientists based their findings on new fossils from the Moroccan Sahara as well as specimens in museum collections.

Unlike other predators, Spinosaurus had feet similar to some shorebirds that stand on or move across soft surfaces rather than perch. Its feet may even have been webbed.

Its most distinctive feature was a row of spines that created an enormous sail down the middle of its back. Scientists think it was used for display purposes rather than to trap heat or store fat.

A digital model was used to create an anatomically precise 3-D replica of the Spinosaurus skeleton, allowing the researchers to confirm its astonishing size.

Co-author Dr Paul Sereno, also from the University of Chicago, said: "What surprised us even more than the dinosaur's size were its unusual proportions. We see limb proportions like this in early whales, not predatory dinosaurs."

The research is reported in the journal Science.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.