Xanathar's Guide to Everything introduces the Ceremony spell. One of the options is to perform a wedding:
Wedding: You touch adult humanoids willing to be bonded together in marriage. For the next 7 days, each target gains a +2 bonus to AC while they are within 30 feet of each other. A creature can benefit from this rite again only if widowed.
The term "together" indicates that there must be a minimum of 2 participants.
What about a maximum number of participants?
The only possible limitation I can see is the number of creatures they can fit into a 10 ft radius sphere, presumably including the caster themselves:
When you cast the spell, choose one of the following rites, the target of which must be within 10 feet of you throughout the casting.
Update: I have edited this question's title because the Ceremony spell only performs wedding rites, and the spell by itself does not constitute a legally binding marriage.