It's primarily a skill game, although luck plays a huge role. In any single given hand, luck is the predominant factor in who will win or lose. However, poker players don't play a single hand. They play hand after hand after hand & and overall, skill dominates.
Like all gambling games, luck does play a major role in poker, especially in the short term. Poker is different than any other form of gambling, however. Unlike the other games on a casino floor, poker is a game of skill, and the world's top pros make money because they're the best players in the game.