What is the function of the front and rear lights?

Headlights play an important and fundamental role in ensuring the driver's vision when driving at night, or when visibility is poor or the weather is foggy.

The taillights also play an important role in alerting the cars behind you of the presence of your vehicle and determining the direction when turning right or left.