How do you get Cradily?

In the Pokemon games, the player can revive a Lileep from a Root Fossil. Lileep then evolves into Cradily at level 40.