Shabbat candles must be lit before sunset to avoid desecrating the Shabbat.