Grappling is a melee attack roll.
From the SRD Wrote:Starting a Grapple
To start a grapple, you need to grab and hold your target. Starting a grapple requires a successful melee attack roll. If you get multiple attacks, you can attempt to start a grapple multiple times (at successively lower base attack bonuses).