What should I do first if it is already time for Maariv and I have not lit the Chanukah candles?
The Chabad custom is to light immediately after sunset, between Minchah and Maariv. If Maariv time has arrived and one can pray with a minyan now, Maariv comes first and the candles are lit afterward, because the more frequent mitzvah takes precedence. If a minyan will be available only later, or one cannot currently leave home to join it, one may light first and pray Maariv later, since the rule of precedence applies when one is ready to perform both mitzvos immediately. An additional reason accepted by some authorities is that reciting Shema is a Torah obligation and takes precedence over the rabbinic obligation of lighting.
A practical halachic question: the final ruling is for your rabbi.
The source brings differing opinions.
Quote from the source«However, one only should daven maariv before lighting if he can do so with a minyan.»
- Author
- Rabbi Chaim Chazan
- Source
- Lemaan Yishmeu — 179 - Chanuka, p. 2