Were your parents married to each other when you were born?
A father passes on Moroccan nationality only through a legal link to the child recognised by the personal status law that applies to him, and for a Muslim father that link normally comes from marriage. A mother passes it on whether or not she was married.