If you, as a third-country national, would like to live in Germany with your German spouse or life partner, you can apply for a residence permit for family reunification.
Don't want to keep the IV/IV tax class combination that is automatically granted upon marriage? Then you and your wife or husband can submit an application for a tax class change to the tax office responsible for your place of residence.