It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "There is no marriage without a guardian (wali), and the ruler (sultan) is the guardian of the one who has no guardian."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11250