Different streams of Judaism vary, but the general rule is maternal. If your mother is a Jew, you’re a Jew.
Paternal Jewishness is more complicated and has varying answers that are too detailed for this post.
However, historically, Jewishness was also racially defined by oppressors. For example, Nazis defined Jews based on the number of Jewish grandparents a person has.