You can apply for German citizenship after living in Germany for at least 5 years. If your spouse is a German citizen or you have "outstanding integration" in Germany, you may be eligible to apply for citizenship after 3 years.