Clarification.

So I've heard that you can get your period even if you're pregnant. How is that even possible?! Thinking logically about what your period ACTUALLY is makes it seem impossible! So, can you clarify this for me please? Thank you :)