If you marry a German citizen, you are not automatically entitled to German citizenship. However, spouses of German citizens are permitted to apply for citizenship by naturalisation much sooner than others: usually after two years of marriage.
Can you get German citizenship by marriage?
Spouses or registered same-sex partners of German citizens are eligible for naturalization after three years of legal residence in Germany. They must have been married or in a registered partnership for at least two years at the time of application. The general requirements for naturalization also apply.
Can a U.S. citizen marry a German citizen?
If a U.S. citizen marries a German citizen, he or she does not acquire German citizenship, nor does the German citizen acquire U.S. citizenship. If you wish to live in the United States after marrying, the U.S. spouse will need to apply for an Immigrant Visa on behalf of the foreign spouse.