Question:
Is the presence of witnesses necessary at the time of marriage?
Answer:
Yes, for a marriage, the testimony of at least two upright men, or one man and two women, is necessary. A marriage is not valid without witnesses.
The Messenger of Allah ﷺ said:
لا نكاح إلا بولي وشاهدي عدل
There is no marriage without a guardian and two upright witnesses.
Reference: (Sunan Ibn Majah: 1881, its chain is hasan (good))