Non Swiss married couple / How taxes work if one moves out to an EU

Sorry if this has been asked before but I tried to search for similar topic and wasn't successful.

Due to my mother health getting worse I have decided to move back home to Barcelona to look after her and give up my C permit. However my husband wishes to continue working in Switzerland.

Does anyone knows how this affects our tax returns?

Many thanks

Your partner will still be taxed as married.

Thank you. But for me once I am resident in Spain I guess I am no longer required to do a tax return here? Sorry for not asking clearly.

But just on his worldwide earnings, right?