The level cap in Viva Piñata is 50. Reaching it takes a steady accumulation of experience from completing challenges, romancing piñatas, and satisfying the needs of every species you attract to the garden.
Hitting 50 is less of a finish line than a badge of patience. Most players get there long after their garden has become fully self-sustaining, which is really the point of the game.