How did sunni start?

Sunni had come during the time of the prophethood of Muhammad Mustafa (pbuh), and they follow the practises by him (pbuh).
(pbuh)=peace be upon him
(I'm Muslim)