gunwale

The top edge or rim along the side of a boat.