Anyone who has Dutch nationality can get married in the Netherlands, regardless of whether they live here and regardless of their partner’s nationality.
Two foreign nationals may marry in the Netherlands if one of them legally resides in the Netherlands. To prevent marriages of convenience, non-Dutch nationals who wish to marry or enter into a registered partnership must either have a permanent residence permit or obtain a statement from the Dutch police service for foreigners (vreemdelingenpolitie) regarding their status under the Aliens Act.
Couples of the same gender are also allowed to marry in the Netherlands.
The Dutch government’s website on marrying a foreigner in the Netherlands gives a good overview of the conditions that apply to various situations where two people want to marry under Dutch law.