How are asteroids formed?

Asteroids are formed from the same dust and gas that formed the sun and the planets in our solar system
by sand and dust in space and rocks