You can remain in Germany if you marry a German citizen or someone who has a permanent residence permit, but you will also need a residence permit. There is no single German residency permit obtained by marriage, but you will be granted permission to remain in the country for the purposes of family union.